diff options
Diffstat (limited to 'include/linux/kobject_ns.h')
-rw-r--r-- | include/linux/kobject_ns.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kobject_ns.h b/include/linux/kobject_ns.h index f66b065a8b5f..df32d2508290 100644 --- a/include/linux/kobject_ns.h +++ b/include/linux/kobject_ns.h | |||
@@ -39,6 +39,7 @@ enum kobj_ns_type { | |||
39 | */ | 39 | */ |
40 | struct kobj_ns_type_operations { | 40 | struct kobj_ns_type_operations { |
41 | enum kobj_ns_type type; | 41 | enum kobj_ns_type type; |
42 | bool (*current_may_mount)(void); | ||
42 | void *(*grab_current_ns)(void); | 43 | void *(*grab_current_ns)(void); |
43 | const void *(*netlink_ns)(struct sock *sk); | 44 | const void *(*netlink_ns)(struct sock *sk); |
44 | const void *(*initial_ns)(void); | 45 | const void *(*initial_ns)(void); |
@@ -50,6 +51,7 @@ int kobj_ns_type_registered(enum kobj_ns_type type); | |||
50 | const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent); | 51 | const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent); |
51 | const struct kobj_ns_type_operations *kobj_ns_ops(struct kobject *kobj); | 52 | const struct kobj_ns_type_operations *kobj_ns_ops(struct kobject *kobj); |
52 | 53 | ||
54 | bool kobj_ns_current_may_mount(enum kobj_ns_type type); | ||
53 | void *kobj_ns_grab_current(enum kobj_ns_type type); | 55 | void *kobj_ns_grab_current(enum kobj_ns_type type); |
54 | const void *kobj_ns_netlink(enum kobj_ns_type type, struct sock *sk); | 56 | const void *kobj_ns_netlink(enum kobj_ns_type type, struct sock *sk); |
55 | const void *kobj_ns_initial(enum kobj_ns_type type); | 57 | const void *kobj_ns_initial(enum kobj_ns_type type); |