Re: [E1000-devel] networking probs in next-20081203

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Smalley
Date: Friday, December 5, 2008 - 7:12 am

On Thu, 2008-12-04 at 13:00 -0800, Eric W. Biederman wrote:

I suspect we need the following un-tested diff to map all of these proc/
filesystem types to "proc" for the policy lookup at filesystem mount
time.

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 9155fa9..3c3ceb7 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -703,7 +703,7 @@ static int selinux_set_mnt_opts(struct super_block *sb,
 		sbsec->proc = 1;
 
 	/* Determine the labeling behavior to use for this filesystem type. */
-	rc = security_fs_use(sb->s_type->name, &sbsec->behavior, &sbsec->sid);
+	rc = security_fs_use(sbsec->proc ? "proc" : sb->s_type->name, &sbsec->behavior, &sbsec->sid);
 	if (rc) {
 		printk(KERN_WARNING "%s: security_fs_use(%s) returned %d\n",
 		       __func__, sb->s_type->name, rc);

-- 
Stephen Smalley
National Security Agency

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
networking probs in next-20081203, Andrew Morton, (Wed Dec 3, 6:18 pm)
Re: networking probs in next-20081203, Alexey Dobriyan, (Thu Dec 4, 8:14 am)
Re: [E1000-devel] networking probs in next-20081203, Kok, Auke, (Thu Dec 4, 10:41 am)
Re: [E1000-devel] networking probs in next-20081203, Alexey Dobriyan, (Thu Dec 4, 10:52 am)
Re: [E1000-devel] networking probs in next-20081203, Stephen Smalley, (Thu Dec 4, 11:11 am)
Re: [E1000-devel] networking probs in next-20081203, David Miller, (Thu Dec 4, 11:21 am)
Re: [E1000-devel] networking probs in next-20081203, Stephen Smalley, (Thu Dec 4, 12:32 pm)
Re: [E1000-devel] networking probs in next-20081203, Stephen Smalley, (Thu Dec 4, 1:06 pm)
Re: [E1000-devel] networking probs in next-20081203, Eric W. Biederman, (Thu Dec 4, 2:00 pm)
Re: [E1000-devel] networking probs in next-20081203, James Morris, (Thu Dec 4, 7:03 pm)
Re: [E1000-devel] networking probs in next-20081203, Eric W. Biederman, (Fri Dec 5, 12:49 am)
Re: [E1000-devel] networking probs in next-20081203, Stephen Smalley, (Fri Dec 5, 7:12 am)
Re: [E1000-devel] networking probs in next-20081203, James Morris, (Thu Dec 11, 3:41 am)
Re: [E1000-devel] networking probs in next-20081203, Alexey Dobriyan, (Thu Dec 11, 10:24 pm)
Re: [E1000-devel] networking probs in next-20081203, James Morris, (Fri Dec 12, 2:26 am)
Re: [E1000-devel] networking probs in next-20081203, James Morris, (Fri Dec 12, 2:29 am)
Re: [E1000-devel] networking probs in next-20081203, Eric W. Biederman, (Fri Dec 12, 3:51 am)
Re: [E1000-devel] networking probs in next-20081203, Stephen Smalley, (Fri Dec 12, 2:24 pm)
Re: [E1000-devel] networking probs in next-20081203, James Morris, (Fri Dec 12, 2:40 pm)
Re: [E1000-devel] networking probs in next-20081203, James Morris, (Mon Dec 15, 6:28 am)