Public bug reported: Please apply commit df91e494 "TOMOYO: Fix mount flags checking order." which is in linux-next.git and will be included in 3.4-rc1. Without this patch, when security=tomoyo is given to kernel boot parameter, certain combination of mount request cannot be granted.
Test case: Compile test.c and run it as root. ----- test.c start ----- #include <stdio.h> #include <string.h> #include <sys/mount.h> #include <errno.h> int main(int argc, char *argv[]) { if (mount(NULL, "/tmp", "tmpfs", 0, NULL)) return 1; if (mount(NULL, "/tmp", NULL, MS_BIND | MS_REMOUNT, NULL) == 0) printf("OK: Success.\n"); else printf("BUG: %s\n", strerror(errno)); umount("/tmp"); return 0; } ----- test.c end ----- Expected result: OK: Success. Actual result: BUG: No such file or directory ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/952010 Title: [Precise] TOMOYO: Please apply fix for mount permission check. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/952010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs