diff options
author | Eric Paris <eparis@redhat.com> | 2011-04-28 21:11:20 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2011-04-28 21:15:51 +0200 |
commit | 2667991f60e67d28c495b8967aaabf84b4ccd560 (patch) | |
tree | 893c006121f2be1b44e270fc5b43d8f94435dc81 /security/selinux/ss | |
parent | SELinux: fix comment to state filename_compute_type takes an objname not a qstr (diff) | |
download | linux-2667991f60e67d28c495b8967aaabf84b4ccd560.tar.xz linux-2667991f60e67d28c495b8967aaabf84b4ccd560.zip |
SELinux: rename filename_compute_type argument to *type instead of *con
filename_compute_type() takes as arguments the numeric value of the type of
the subject and target. It does not take a context. Thus the names are
misleading. Fix the argument names.
Signed-off-by: Eric Paris <eparis@redhat.com>
Reviewed-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/ss')
-rw-r--r-- | security/selinux/ss/services.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 3e1ae85c0130..78bb8100b02e 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -1359,13 +1359,13 @@ out: } static void filename_compute_type(struct policydb *p, struct context *newcontext, - u32 scon, u32 tcon, u16 tclass, + u32 stype, u32 ttype, u16 tclass, const char *objname) { struct filename_trans *ft; for (ft = p->filename_trans; ft; ft = ft->next) { - if (ft->stype == scon && - ft->ttype == tcon && + if (ft->stype == stype && + ft->ttype == ttype && ft->tclass == tclass && !strcmp(ft->name, objname)) { newcontext->type = ft->otype; |