Skip to content

Commit 046b85a

Browse files
cgzonespcmoore
authored andcommitted
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 <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 9d8d094 commit 046b85a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

security/selinux/hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3135,7 +3135,7 @@ static int selinux_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
31353135
const struct cred *cred = current_cred();
31363136
struct inode *inode = d_backing_inode(dentry);
31373137
unsigned int ia_valid = iattr->ia_valid;
3138-
__u32 av = FILE__WRITE;
3138+
u32 av = FILE__WRITE;
31393139

31403140
/* ATTR_FORCE is just used for ATTR_KILL_S[UG]ID. */
31413141
if (ia_valid & ATTR_FORCE) {

security/selinux/ss/policydb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct range_trans {
144144

145145
/* Boolean data type */
146146
struct cond_bool_datum {
147-
__u32 value; /* internal type value */
147+
u32 value; /* internal type value */
148148
int state;
149149
};
150150

0 commit comments

Comments
 (0)