diff options
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index c8893f663470..39eea07c2900 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h | |||
@@ -371,6 +371,11 @@ __poll_t kernfs_generic_poll(struct kernfs_open_file *of, | |||
371 | struct poll_table_struct *pt); | 371 | struct poll_table_struct *pt); |
372 | void kernfs_notify(struct kernfs_node *kn); | 372 | void kernfs_notify(struct kernfs_node *kn); |
373 | 373 | ||
374 | int kernfs_security_xattr_get(struct kernfs_node *kn, const char *suffix, | ||
375 | void *value, size_t size); | ||
376 | int kernfs_security_xattr_set(struct kernfs_node *kn, const char *suffix, | ||
377 | void *value, size_t size, int flags); | ||
378 | |||
374 | const void *kernfs_super_ns(struct super_block *sb); | 379 | const void *kernfs_super_ns(struct super_block *sb); |
375 | int kernfs_get_tree(struct fs_context *fc); | 380 | int kernfs_get_tree(struct fs_context *fc); |
376 | void kernfs_free_fs_context(struct fs_context *fc); | 381 | void kernfs_free_fs_context(struct fs_context *fc); |
@@ -473,6 +478,16 @@ static inline int kernfs_setattr(struct kernfs_node *kn, | |||
473 | 478 | ||
474 | static inline void kernfs_notify(struct kernfs_node *kn) { } | 479 | static inline void kernfs_notify(struct kernfs_node *kn) { } |
475 | 480 | ||
481 | static inline int kernfs_security_xattr_get(struct kernfs_node *kn, | ||
482 | const char *suffix, void *value, | ||
483 | size_t size) | ||
484 | { return -ENOSYS; } | ||
485 | |||
486 | static inline int kernfs_security_xattr_set(struct kernfs_node *kn, | ||
487 | const char *suffix, void *value, | ||
488 | size_t size, int flags) | ||
489 | { return -ENOSYS; } | ||
490 | |||
476 | static inline const void *kernfs_super_ns(struct super_block *sb) | 491 | static inline const void *kernfs_super_ns(struct super_block *sb) |
477 | { return NULL; } | 492 | { return NULL; } |
478 | 493 | ||