diff options
| author | Christian Göttsche <[email protected]> | 2024-12-16 16:40:00 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2025-01-08 04:14:38 +0000 |
| commit | 046b85a993a19c992da317b2c19e168d1da795af (patch) | |
| tree | 8c03f1168706508107fd19aa04376d657861918a /security/selinux/hooks.c | |
| parent | selinux: supply missing field initializers (diff) | |
| download | kernel-046b85a993a19c992da317b2c19e168d1da795af.tar.gz kernel-046b85a993a19c992da317b2c19e168d1da795af.zip | |
selinux: avoid using types indicating user space interaction
Integer types starting with a double underscore, like __u32, are
intended for usage of variables interacting with user-space.
Just use the plain variant.
Signed-off-by: Christian Göttsche <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
| -rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 617f54abb640..7b2e2c60f0f4 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3135,7 +3135,7 @@ static int selinux_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, const struct cred *cred = current_cred(); struct inode *inode = d_backing_inode(dentry); unsigned int ia_valid = iattr->ia_valid; - __u32 av = FILE__WRITE; + u32 av = FILE__WRITE; /* ATTR_FORCE is just used for ATTR_KILL_S[UG]ID. */ if (ia_valid & ATTR_FORCE) { |
