[packages/systemd] - give systemd-logind access to /proc when it's mounted with hidepid option - rel 5

baggins baggins at pld-linux.org
Sun Mar 24 16:49:12 CET 2013


commit 5ad7745fe63cadf3940ba00da430c326191947f9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 24 16:48:22 2013 +0100

    - give systemd-logind access to /proc when it's mounted with hidepid option
    - rel 5

 proc-hidepid.patch | 10 ++++++++++
 systemd.spec       |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/systemd.spec b/systemd.spec
index 0aea471..845e9bb 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -15,7 +15,7 @@ Summary(pl.UTF-8):	systemd - zarządca systemu i usług dla Linuksa
 Name:		systemd
 # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
 Version:	198
-Release:	4
+Release:	5
 Epoch:		1
 License:	GPL v2+ (udev), LGPL v2.1+ (the rest)
 Group:		Base
@@ -57,6 +57,7 @@ Patch9:		udevadm-in-sbin.patch
 Patch10:	net-rename-revert.patch
 Patch11:	nss-in-rootlib.patch
 Patch12:	systemctl-path.patch
+Patch13:	proc-hidepid.patch
 URL:		http://www.freedesktop.org/wiki/Software/systemd
 BuildRequires:	acl-devel
 BuildRequires:	attr-devel
@@ -569,6 +570,7 @@ Wiązania do Systemd dla Pythona.
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 cp -p %{SOURCE2} src/systemd_booted.c
 
 %{__mv} units/initrd-cleanup.service{,.in}
diff --git a/proc-hidepid.patch b/proc-hidepid.patch
new file mode 100644
index 0000000..6a0fad2
--- /dev/null
+++ b/proc-hidepid.patch
@@ -0,0 +1,10 @@
+--- systemd-198/units/systemd-logind.service.in~	2012-07-19 12:46:25.831148364 +0200
++++ systemd-198/units/systemd-logind.service.in	2013-03-24 16:39:38.798689883 +0100
+@@ -21,3 +21,7 @@
+ # Increase the default a bit in order to allow many simultaneous
+ # logins since we keep one fd open per session.
+ LimitNOFILE=16384
++
++# Run as group 'proc' to ensure access to /proc when
++# it is mounted with hidepid=1|2 option
++Group=17
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/5ad7745fe63cadf3940ba00da430c326191947f9



More information about the pld-cvs-commit mailing list