Bug 917404 - NoNewPrivileges = yes do not seems to work
Summary: NoNewPrivileges = yes do not seems to work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-03 23:19 UTC by Michael S.
Modified: 2013-05-16 02:59 UTC (History)
11 users (show)

Fixed In Version: systemd-201-2.fc18.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-16 02:59:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael S. 2013-03-03 23:19:22 UTC
Trying to harden tor, I have created the file :
$ cat /etc/systemd/system/tor.service 
.include /usr/lib/systemd/system/tor.service
[Service]
PrivateTmp=true
LimitNPROC=1
InaccessibleDirectories=/
ReadOnlyDirectories=/usr /etc
ReadWriteDirectories=/var/lib/tor /var/log/tor
DeviceAllow=/dev/null rw
NoNewPrivileges=true

However, on my F18, this error message is show :

mars 03 13:34:36 liliana.example.org systemd[1]: [/etc/systemd/system/tor.service:9] Unknown lvalue 'NoNewPrivileges' in section 'Service'. Ignoring.

yet, this is clearly defined in the man pages ( http://www.freedesktop.org/software/systemd/man/systemd.exec.html ) , and in the source code. 

$ rpm -q systemd
systemd-197-1.fc18.2.x86_64

Comment 1 Michal Schmidt 2013-03-04 13:05:50 UTC
Hm, there's a missing comma after "$1.NoNewPrivileges" in src/core/load-fragment-gperf.gperf.m4. That's probably it.

Comment 2 Lennart Poettering 2013-03-06 16:49:11 UTC
Fixed in git.

Comment 3 Fedora End Of Life 2013-04-03 20:21:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 4 Fedora Update System 2013-04-10 20:14:57 UTC
systemd-201-2.fc18.1 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/systemd-201-2.fc18.1

Comment 5 Fedora Update System 2013-04-11 23:28:05 UTC
Package systemd-201-2.fc18.2:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.2'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.2
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-04-16 00:02:39 UTC
Package systemd-201-2.fc18.4:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.4'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.4
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-04-18 02:40:20 UTC
Package systemd-201-2.fc18.5:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.5
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2013-05-07 13:42:19 UTC
systemd-201-2.fc18.6 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.6

Comment 9 Fedora Update System 2013-05-09 10:04:09 UTC
Package systemd-201-2.fc18.6:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-201-2.fc18.6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5452/systemd-201-2.fc18.6
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2013-05-16 02:59:36 UTC
systemd-201-2.fc18.6 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.