- also supply MS_NODEV to avoid exposing device files
if someone got them on the encrypted media. OBS-URL: https://build.opensuse.org/package/show/security/ecryptfs-utils?expand=0&rev=44
This commit is contained in:
parent
1159255a51
commit
e7bc56b1cd
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 11 11:48:24 UTC 2012 - meissner@suse.com
|
||||
|
||||
- also supply MS_NODEV to avoid exposing device files
|
||||
if someone got them on the encrypted media.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 10 14:03:27 UTC 2012 - meissner@suse.com
|
||||
|
||||
|
@ -256,7 +256,7 @@ Index: ecryptfs-utils-96/src/utils/mount.ecryptfs_private.c
|
||||
}
|
||||
/* Perform mount */
|
||||
- if (mount(src, ".", FSTYPE, 0, opt) == 0) {
|
||||
+ if (mount(src, ".", FSTYPE, MS_NOSUID, opt) == 0) {
|
||||
+ if (mount(src, ".", FSTYPE, MS_NOSUID|MS_NODEV, opt) == 0) {
|
||||
if (update_mtab(src, dest, opt) != 0) {
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user