diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index b2cdb6bc8287..4658777b41cc 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -231,6 +231,7 @@ struct inodes_stat_t { | |||
231 | #define S_NOCMTIME 128 /* Do not update file c/mtime */ | 231 | #define S_NOCMTIME 128 /* Do not update file c/mtime */ |
232 | #define S_SWAPFILE 256 /* Do not truncate: swapon got its bmaps */ | 232 | #define S_SWAPFILE 256 /* Do not truncate: swapon got its bmaps */ |
233 | #define S_PRIVATE 512 /* Inode is fs-internal */ | 233 | #define S_PRIVATE 512 /* Inode is fs-internal */ |
234 | #define S_IMA 1024 /* Inode has an associated IMA struct */ | ||
234 | 235 | ||
235 | /* | 236 | /* |
236 | * Note that nosuid etc flags are inode-specific: setting some file-system | 237 | * Note that nosuid etc flags are inode-specific: setting some file-system |
@@ -265,6 +266,7 @@ struct inodes_stat_t { | |||
265 | #define IS_NOCMTIME(inode) ((inode)->i_flags & S_NOCMTIME) | 266 | #define IS_NOCMTIME(inode) ((inode)->i_flags & S_NOCMTIME) |
266 | #define IS_SWAPFILE(inode) ((inode)->i_flags & S_SWAPFILE) | 267 | #define IS_SWAPFILE(inode) ((inode)->i_flags & S_SWAPFILE) |
267 | #define IS_PRIVATE(inode) ((inode)->i_flags & S_PRIVATE) | 268 | #define IS_PRIVATE(inode) ((inode)->i_flags & S_PRIVATE) |
269 | #define IS_IMA(inode) ((inode)->i_flags & S_IMA) | ||
268 | 270 | ||
269 | /* the read-only stuff doesn't really belong here, but any other place is | 271 | /* the read-only stuff doesn't really belong here, but any other place is |
270 | probably as bad and I don't want to create yet another include file. */ | 272 | probably as bad and I don't want to create yet another include file. */ |
@@ -772,6 +774,10 @@ struct inode { | |||
772 | 774 | ||
773 | unsigned int i_flags; | 775 | unsigned int i_flags; |
774 | 776 | ||
777 | #ifdef CONFIG_IMA | ||
778 | /* protected by i_lock */ | ||
779 | unsigned int i_readcount; /* struct files open RO */ | ||
780 | #endif | ||
775 | atomic_t i_writecount; | 781 | atomic_t i_writecount; |
776 | #ifdef CONFIG_SECURITY | 782 | #ifdef CONFIG_SECURITY |
777 | void *i_security; | 783 | void *i_security; |