Mageia Bugzilla – Attachment 12042 Details for
Bug 27690
msec searches inaproriate directories and mount points
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to add /run to MOUNTPOINT_FILTER and to add systemd types to TYPE_FILTER
functions.sh.patch (text/plain), 1003 bytes, created by
Dave Hodgins
on 2020-11-30 21:56:45 CET
(
hide
)
Description:
Patch to add /run to MOUNTPOINT_FILTER and to add systemd types to TYPE_FILTER
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2020-11-30 21:56:45 CET
Size:
1003 bytes
patch
obsolete
>--- /usr/share/msec/functions.sh.original 2020-06-06 02:01:08.000000000 -0400 >+++ /usr/share/msec/functions.sh 2020-11-30 15:52:19.228568784 -0500 >@@ -27,8 +27,8 @@ > # Modified filters coming from debian security scripts. > # rootfs is not listed among excluded types, because > # / is mounted twice, and filtering it would mess with excluded dir list >-TYPE_FILTER='(devpts|sysfs|usbfs|tmpfs|binfmt_misc|rpc_pipefs|securityfs|auto|proc|msdos|fat|vfat|iso9660|ncpfs|smbfs|hfs|nfs|afs|coda|cifs|fuse.gvfs-fuse-daemon|vmblock)' >-MOUNTPOINT_FILTER='^\/mnt|^\/media' >+TYPE_FILTER='(devpts|sysfs|usbfs|tmpfs|binfmt_misc|rpc_pipefs|securityfs|auto|proc|msdos|fat|vfat|iso9660|ncpfs|smbfs|hfs|nfs|afs|coda|cifs|fuse.gvfs-fuse-daemon|vmblock|cgroup|cgroup2|bpf|pstore|hugetlbfs|systemd-1|debugfs|mqueue|binfmt_misc|sunrpc|tracefs|gvfsd-fuse)' >+MOUNTPOINT_FILTER='^\/mnt|^\/media|^\/run' > DIR=`awk '$3 !~ /'$TYPE_FILTER'/ && $2 !~ /'$MOUNTPOINT_FILTER'/ \ > {print $2}' /proc/mounts | uniq` > PRINT="%h/%f\n"
--- /usr/share/msec/functions.sh.original 2020-06-06 02:01:08.000000000 -0400 +++ /usr/share/msec/functions.sh 2020-11-30 15:52:19.228568784 -0500 @@ -27,8 +27,8 @@ # Modified filters coming from debian security scripts. # rootfs is not listed among excluded types, because # / is mounted twice, and filtering it would mess with excluded dir list -TYPE_FILTER='(devpts|sysfs|usbfs|tmpfs|binfmt_misc|rpc_pipefs|securityfs|auto|proc|msdos|fat|vfat|iso9660|ncpfs|smbfs|hfs|nfs|afs|coda|cifs|fuse.gvfs-fuse-daemon|vmblock)' -MOUNTPOINT_FILTER='^\/mnt|^\/media' +TYPE_FILTER='(devpts|sysfs|usbfs|tmpfs|binfmt_misc|rpc_pipefs|securityfs|auto|proc|msdos|fat|vfat|iso9660|ncpfs|smbfs|hfs|nfs|afs|coda|cifs|fuse.gvfs-fuse-daemon|vmblock|cgroup|cgroup2|bpf|pstore|hugetlbfs|systemd-1|debugfs|mqueue|binfmt_misc|sunrpc|tracefs|gvfsd-fuse)' +MOUNTPOINT_FILTER='^\/mnt|^\/media|^\/run' DIR=`awk '$3 !~ /'$TYPE_FILTER'/ && $2 !~ /'$MOUNTPOINT_FILTER'/ \ {print $2}' /proc/mounts | uniq` PRINT="%h/%f\n"
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27690
:
12033
|
12034
|
12036
| 12042