commit 22c89e20a9c64b883d69f7112bb23afe2714fa95
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Thu Feb 28 10:48:48 2019 +0100

    - rel 4; mount with nosuid,nodev,noexec

 linux-pstore.py   | 3 ++-
 linux-pstore.spec | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/linux-pstore.spec b/linux-pstore.spec
index f5725df..fe03820 100644
--- a/linux-pstore.spec
+++ b/linux-pstore.spec
@@ -1,6 +1,6 @@
 Summary:       Save pstore logs and make room for future logs
 Name:          linux-pstore
-Version:       0.3
+Version:       0.4
 Release:       1
 License:       GPL
 Group:         Daemons
diff --git a/linux-pstore.py b/linux-pstore.py
index c9c1d34..f3df250 100755
--- a/linux-pstore.py
+++ b/linux-pstore.py
@@ -25,7 +25,8 @@ def mount_pstore():
     try:
         if open('/proc/self/mounts', 'r').read().find('/sys/fs/pstore') >= 0:
             return
-        subprocess.run(["/bin/mount", "none", "/sys/fs/pstore", "-t", 
"pstore"], timeout=60, check=True, capture_output=True, text=True)
+        subprocess.run(["/bin/mount", "none", "/sys/fs/pstore", "-t", 
"pstore", "-o", "nosuid,nodev,noexec"],
+                       timeout=60, check=True, capture_output=True, text=True)
     except subprocess.CalledProcessError as e:
         print("%s: %s\nstdout=%s\nstderr=%s" % (sys.argv[0], e, e.stdout, 
e.stderr), file=sys.stderr)
         sys.exit(1)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linux-pstore.git/commitdiff/22c89e20a9c64b883d69f7112bb23afe2714fa95

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to