projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4742600
)
SELinux: rename filename_compute_type argument to *type instead of *con
author
Eric Paris
<
[email protected]
>
Thu, 28 Apr 2011 19:11:20 +0000
(15:11 -0400)
committer
Eric Paris
<
[email protected]
>
Thu, 28 Apr 2011 19:15:51 +0000
(15:15 -0400)
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 <
[email protected]
>
Reviewed-by: James Morris <
[email protected]
>
security/selinux/ss/services.c
patch
|
blob
|
history
diff --git
a/security/selinux/ss/services.c
b/security/selinux/ss/services.c
index 3e1ae85c01301b83b6fca1921933f2bfc5926a06..78bb8100b02e679b9f4ae58338afe1920dea6aa6 100644
(file)
--- 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 s
con, u32 tcon
, u16 tclass,
+ u32 s
type, u32 ttype
, u16 tclass,
const char *objname)
{
struct filename_trans *ft;
for (ft = p->filename_trans; ft; ft = ft->next) {
- if (ft->stype == s
con
&&
- ft->ttype == t
con
&&
+ if (ft->stype == s
type
&&
+ ft->ttype == t
type
&&
ft->tclass == tclass &&
!strcmp(ft->name, objname)) {
newcontext->type = ft->otype;