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>
This commit is contained in:
Eric Paris 2011-04-28 15:11:20 -04:00
parent 4742600cf5
commit 2667991f60
1 changed files with 3 additions and 3 deletions

View File

@ -1359,13 +1359,13 @@ out:
} }
static void filename_compute_type(struct policydb *p, struct context *newcontext, 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) const char *objname)
{ {
struct filename_trans *ft; struct filename_trans *ft;
for (ft = p->filename_trans; ft; ft = ft->next) { for (ft = p->filename_trans; ft; ft = ft->next) {
if (ft->stype == scon && if (ft->stype == stype &&
ft->ttype == tcon && ft->ttype == ttype &&
ft->tclass == tclass && ft->tclass == tclass &&
!strcmp(ft->name, objname)) { !strcmp(ft->name, objname)) {
newcontext->type = ft->otype; newcontext->type = ft->otype;