Skip to content

Commit 26d1283

Browse files
jtlaytonbrauner
authored andcommitted
selinux: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions. Acked-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20231004185347.80880-83-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 7563c93 commit 26d1283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/selinux/selinuxfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ static struct inode *sel_make_inode(struct super_block *sb, umode_t mode)
11981198

11991199
if (ret) {
12001200
ret->i_mode = mode;
1201-
ret->i_atime = ret->i_mtime = inode_set_ctime_current(ret);
1201+
simple_inode_init_ts(ret);
12021202
}
12031203
return ret;
12041204
}

0 commit comments

Comments
 (0)