summaryrefslogtreecommitdiff
path: root/security/selinux/ss/services.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-07-06 16:23:29 +0300
committerPaul Moore <paul@paul-moore.com>2023-07-19 01:29:49 +0300
commit7128578c79a73760305f89ff975047c124919dfc (patch)
tree579320630af28b9debd03cf7feee608aa4327ab2 /security/selinux/ss/services.c
parenta13479bb3c9d559fceb075986d8e0154a7eabbb1 (diff)
downloadlinux-7128578c79a73760305f89ff975047c124919dfc.tar.xz
selinux: use consistent type for AV rule specifier
The specifier for avtab keys is always supplied with a type of u16, either as a macro to security_compute_sid() or the member specified of the struct avtab_key. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r--security/selinux/ss/services.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 78946b71c1c1..83b85536cd2b 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -1694,7 +1694,7 @@ static void filename_compute_type(struct policydb *policydb,
static int security_compute_sid(u32 ssid,
u32 tsid,
u16 orig_tclass,
- u32 specified,
+ u16 specified,
const char *objname,
u32 *out_sid,
bool kern)