exec: Rename bprm->cred_prepared to called_set_creds
The cred_prepared bprm flag has a misleading name. It has nothing to do with the bprm_prepare_cred hook, and actually tracks if bprm_set_creds has been called. Rename this flag and improve its comment. Cc: David Howells <dhowells@redhat.com> Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by:Kees Cook <keescook@chromium.org> Acked-by:
John Johansen <john.johansen@canonical.com> Acked-by:
James Morris <james.l.morris@oracle.com> Acked-by:
Paul Moore <paul@paul-moore.com> Acked-by:
Serge Hallyn <serge@hallyn.com>
Showing
- fs/binfmt_flat.c 1 addition, 1 deletionfs/binfmt_flat.c
- fs/exec.c 1 addition, 1 deletionfs/exec.c
- include/linux/binfmts.h 6 additions, 2 deletionsinclude/linux/binfmts.h
- security/apparmor/domain.c 1 addition, 1 deletionsecurity/apparmor/domain.c
- security/selinux/hooks.c 1 addition, 1 deletionsecurity/selinux/hooks.c
- security/smack/smack_lsm.c 1 addition, 1 deletionsecurity/smack/smack_lsm.c
- security/tomoyo/tomoyo.c 1 addition, 1 deletionsecurity/tomoyo/tomoyo.c
Please register or sign in to comment