aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/gc.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-05-16 21:10:31 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:33:37 -0400
commit2106ccd972dcd9fda7df9b181505fac1741b3508 (patch)
tree4361f9498c303cabc20abc85c1b5ee0afa677b0f /security/tomoyo/gc.c
parenta1f9bb6a375a8dbf7797ffbd6739c46b338a77f7 (diff)
TOMOYO: Add mount restriction.
mount(2) has three string and one numeric parameters. Split mount restriction code from security/tomoyo/file.c . Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/gc.c')
-rw-r--r--security/tomoyo/gc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/security/tomoyo/gc.c b/security/tomoyo/gc.c
index 78100180d23d..be2d3b935533 100644
--- a/security/tomoyo/gc.c
+++ b/security/tomoyo/gc.c
@@ -124,6 +124,16 @@ static void tomoyo_del_acl(struct tomoyo_acl_info *acl)
124 tomoyo_put_number_union(&entry->minor); 124 tomoyo_put_number_union(&entry->minor);
125 } 125 }
126 break; 126 break;
127 case TOMOYO_TYPE_MOUNT_ACL:
128 {
129 struct tomoyo_mount_acl *entry
130 = container_of(acl, typeof(*entry), head);
131 tomoyo_put_name_union(&entry->dev_name);
132 tomoyo_put_name_union(&entry->dir_name);
133 tomoyo_put_name_union(&entry->fs_type);
134 tomoyo_put_number_union(&entry->flags);
135 }
136 break;
127 default: 137 default:
128 printk(KERN_WARNING "Unknown type\n"); 138 printk(KERN_WARNING "Unknown type\n");
129 break; 139 break;