exec: Rename bprm->cred_prepared to called_set_creds
authorKees Cook <keescook@chromium.org>
Tue, 18 Jul 2017 22:25:23 +0000 (15:25 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 1 Aug 2017 19:02:48 +0000 (12:02 -0700)
commitddb4a1442def2a78b91a85b4251fb712ef23662b
tree2e6ed1b1f5f92f463afe5480cd947273e1d43671
parent520eccdfe187591a51ea9ab4c1a024ae4d0f68d9
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>
fs/binfmt_flat.c
fs/exec.c
include/linux/binfmts.h
security/apparmor/domain.c
security/selinux/hooks.c
security/smack/smack_lsm.c
security/tomoyo/tomoyo.c