Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jmorris/selinux-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
  selinux: fix labeling of /proc/net inodes
  • Loading branch information
Linus Torvalds committed Jan 27, 2008
2 parents 9b73e76 + b1aa530 commit 69e4d4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/selinux/ss/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,9 @@ int security_genfs_sid(const char *fstype,
struct ocontext *c;
int rc = 0, cmp = 0;

while (path[0] == '/' && path[1] == '/')
path++;

POLICY_RDLOCK;

for (genfs = policydb.genfs; genfs; genfs = genfs->next) {
Expand Down

0 comments on commit 69e4d4c

Please sign in to comment.