diff options
author | Kees Cook <keescook@chromium.org> | 2017-07-18 18:25:23 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-08-01 15:02:48 -0400 |
commit | ddb4a1442def2a78b91a85b4251fb712ef23662b (patch) | |
tree | 2e6ed1b1f5f92f463afe5480cd947273e1d43671 /fs/binfmt_flat.c | |
parent | 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 (diff) |
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>
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r-- | fs/binfmt_flat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index a1e6860b6f46..604a176df0c2 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c | |||
@@ -890,7 +890,7 @@ static int load_flat_shared_library(int id, struct lib_info *libs) | |||
890 | * as we're past the point of no return and are dealing with shared | 890 | * as we're past the point of no return and are dealing with shared |
891 | * libraries. | 891 | * libraries. |
892 | */ | 892 | */ |
893 | bprm.cred_prepared = 1; | 893 | bprm.called_set_creds = 1; |
894 | 894 | ||
895 | res = prepare_binprm(&bprm); | 895 | res = prepare_binprm(&bprm); |
896 | 896 | ||