Message ID | 4D66980F.4050704@canonical.com |
---|---|
State | Accepted |
Delegated to: | Andy Whitcroft |
Headers | show |
Applied to Natty. John, is this specific to Ubuntu because we have Tomoyo or should it be going up to aufs upstream? -apw
On 02/28/2011 03:55 AM, Andy Whitcroft wrote: > Applied to Natty. > > John, is this specific to Ubuntu because we have Tomoyo or should it be > going up to aufs upstream? > yes it should be upstreamed, its using the LSM hook incorrectly so its potentially not just TOMOYO but any project that uses the hook. I did send to aufs-users mailing, but it was reject, and my attempt to join the list hasn't received a reply yet.
diff --git a/ubuntu/aufs/vfsub.c b/ubuntu/aufs/vfsub.c index 6ce2fd5..40f6aef 100644 --- a/ubuntu/aufs/vfsub.c +++ b/ubuntu/aufs/vfsub.c @@ -276,7 +276,7 @@ int vfsub_mknod(struct inode *dir, struct path *path, int mo d = path->dentry; path->dentry = d->d_parent; - err = security_path_mknod(path, d, mode, dev); + err = security_path_mknod(path, d, mode, new_encode_dev(dev)); path->dentry = d; if (unlikely(err)) goto out;