Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27101
b: refs/heads/master
c: ba0c19e
h: refs/heads/master
i:
  27099: 5446628
v: v3
  • Loading branch information
Stephen Smalley authored and Linus Torvalds committed Jun 5, 2006
1 parent 1ade18d commit 3883294
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93ff66bf1ef29881dffd6fdc344555dab03cdb42
refs/heads/master: ba0c19ed6a61a96d4b42b81cb19d4bc81b5f728c
6 changes: 4 additions & 2 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -4422,6 +4422,7 @@ void selinux_complete_init(void)

/* Set up any superblocks initialized prior to the policy load. */
printk(KERN_INFO "SELinux: Setting up existing superblocks.\n");
spin_lock(&sb_lock);
spin_lock(&sb_security_lock);
next_sb:
if (!list_empty(&superblock_security_head)) {
Expand All @@ -4430,19 +4431,20 @@ void selinux_complete_init(void)
struct superblock_security_struct,
list);
struct super_block *sb = sbsec->sb;
spin_lock(&sb_lock);
sb->s_count++;
spin_unlock(&sb_lock);
spin_unlock(&sb_security_lock);
spin_unlock(&sb_lock);
down_read(&sb->s_umount);
if (sb->s_root)
superblock_doinit(sb, NULL);
drop_super(sb);
spin_lock(&sb_lock);
spin_lock(&sb_security_lock);
list_del_init(&sbsec->list);
goto next_sb;
}
spin_unlock(&sb_security_lock);
spin_unlock(&sb_lock);
}

/* SELinux requires early initialization in order to label
Expand Down

0 comments on commit 3883294

Please sign in to comment.