diff options
-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: | |||
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | static void filename_compute_type(struct policydb *p, struct context *newcontext, | 1361 | static void filename_compute_type(struct policydb *p, struct context *newcontext, |
1362 | u32 scon, u32 tcon, u16 tclass, | 1362 | u32 stype, u32 ttype, u16 tclass, |
1363 | const char *objname) | 1363 | const char *objname) |
1364 | { | 1364 | { |
1365 | struct filename_trans *ft; | 1365 | struct filename_trans *ft; |
1366 | for (ft = p->filename_trans; ft; ft = ft->next) { | 1366 | for (ft = p->filename_trans; ft; ft = ft->next) { |
1367 | if (ft->stype == scon && | 1367 | if (ft->stype == stype && |
1368 | ft->ttype == tcon && | 1368 | ft->ttype == ttype && |
1369 | ft->tclass == tclass && | 1369 | ft->tclass == tclass && |
1370 | !strcmp(ft->name, objname)) { | 1370 | !strcmp(ft->name, objname)) { |
1371 | newcontext->type = ft->otype; | 1371 | newcontext->type = ft->otype; |