7 #include <linux/slab.h>
82 const char *requested_type =
NULL;
83 const char *requested_dir_name =
NULL;
84 const char *requested_dev_name =
NULL;
96 rtype.name = requested_type;
102 if (!requested_dir_name) {
106 rdir.name = requested_dir_name;
138 if (!requested_dev_name) {
147 if (!requested_dev_name) {
152 rdev.name = requested_dev_name;
162 error = tomoyo_audit_mount_log(r);
165 kfree(requested_dev_name);
166 kfree(requested_dir_name);
169 kfree(requested_type);
171 if (obj.
path1.dentry)
188 const char *type,
unsigned long flags,
199 flags &= ~MS_MGC_MSK;
202 flags &= ~MS_REMOUNT;
215 flags &= ~MS_PRIVATE;
222 if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE))
225 flags &= ~MS_UNBINDABLE;
232 idx = tomoyo_read_lock();
234 tomoyo_read_unlock(idx);