Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2016451

Summary: nm-sudo.service:47: Unknown lvalue 'ProtectClock' in section 'Service'
Product: Red Hat Enterprise Linux 8 Reporter: Frank Liang <xiliang>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.6CC: atragler, bgalvani, ferferna, ldu, linl, lrintel, mshi, orion, qzhang, ribarry, rkhan, sukulkar, till, vkuznets, ymao, yuxisun, zhguan
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-15 08:39:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frank Liang 2021-10-21 14:39:48 UTC
Description of problem:

See below error in RHEL-8.6 auto test with NetworkManager-1.34.0-0.2.el8.x86_64 installed.

[root@ip-10-116-2-236 ec2-user]# systemd-analyze verify nm-sudo.service
/usr/lib/systemd/system/nm-sudo.service:47: Unknown lvalue 'ProtectClock' in section 'Service'
/usr/lib/systemd/system/nm-sudo.service:50: Unknown lvalue 'ProtectHostname' in section 'Service'
/usr/lib/systemd/system/nm-sudo.service:51: Unknown lvalue 'ProtectKernelLogs' in section 'Service'
[root@ip-10-116-2-236 ec2-user]# rpm -qf /usr/lib/systemd/system/nm-sudo.service
NetworkManager-1.34.0-0.2.el8.x86_64
[root@ip-10-116-2-236 ec2-user]# cat /usr/lib/systemd/system/nm-sudo.service
[Unit]
Description=NetworkManager Sudo Helper
#
# nm-sudo exists for privilege separation. It allows to run NetworkManager
# without certain capabilities, and ask nm-sudo for special operations
# where more privileges are required.
#
# While nm-sudo has privileges that NetworkManager has not, it does not
# mean that itself should run totally unconstrained. On the contrary, it
# also should only have permissions it requires.
#
# nm-sudo rejects all requests that come from any other than the name
# owner of "org.freedesktop.NetworkManager" (that is, NetworkManager process
# itself). It is thus only an implementation detail and provides no public
# API to the user.

[Service]
Type=dbus
BusName=org.freedesktop.nm.sudo
ExecStart=/usr/libexec/nm-sudo
NotifyAccess=main

# Extra configuration options. Set via `systemctl edit nm-sudo.service`:
#
# FOR TESTING ONLY: disable authentication to allow requests from
# everybody. Don't set this outside of testing!
#Environment=NM_SUDO_NO_AUTH_FOR_TESTING=1
#
# The logging level for debug messages (to stdout).
#Environment=NM_SUDO_LOG=TRACE
#
# nm-sudo will exit on idle after timeout. Set timeout here
# or set to 2147483647 for infinity.
#Environment=NM_SUDO_IDLE_TIMEOUT_MSEC=10000

[Install]
Alias=dbus-org.freedesktop.nm.sudo.service

[Service]
# Restrict:
AmbientCapabilities=
CapabilityBoundingSet=
PrivateDevices=true
PrivateMounts=true
PrivateNetwork=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RestrictAddressFamilies=
RestrictNamespaces=true
SystemCallFilter=~@clock
SystemCallFilter=~@cpu-emulation
SystemCallFilter=~@debug
SystemCallFilter=~@module
SystemCallFilter=~@mount
SystemCallFilter=~@obsolete
SystemCallFilter=~@privileged
SystemCallFilter=~@raw-io
SystemCallFilter=~@reboot
SystemCallFilter=~@swap
NoNewPrivileges=true
SupplementaryGroups=

# Grant:
CapabilityBoundingSet=CAP_DAC_OVERRIDE
PrivateUsers=no
RestrictAddressFamilies=AF_UNIX
SystemCallFilter=@resources

RHEL Version:
RHEL-8.6(4.18.0-348.3.el8.x86_64)

How reproducible:
100%

Steps to Reproduce:
1. launch a rhel8.6 instance
2. run 'systemd-analyze verify nm-sudo.service'

Actual results:
Unknown lvalue found

Expected results:
All lvalue are correct

Additional info:
- No such issue in RHEL-9(NetworkManager-1.34.0-0.1.el9.x86_64)

Comment 2 Orion Poplawski 2022-01-02 19:25:34 UTC
Looks to be a dupe of #2010561

Comment 4 Frank Liang 2022-02-15 06:47:22 UTC
Still see this problem at RHEL-8.6.0-20220213.3.
# systemd-analyze verify nm-priv-helper.service
/usr/lib/systemd/system/nm-priv-helper.service:48: Unknown lvalue 'ProtectClock' in section 'Service'
/usr/lib/systemd/system/nm-priv-helper.service:51: Unknown lvalue 'ProtectHostname' in section 'Service'
/usr/lib/systemd/system/nm-priv-helper.service:52: Unknown lvalue 'ProtectKernelLogs' in section 'Service'
# rpm -qf /usr/lib/systemd/system/nm-priv-helper.service
NetworkManager-1.36.0-0.7.el8.aarch64

Comment 6 Fernando F. Mancera 2022-02-15 08:39:15 UTC
Hello! This is duplicated from #2010561. I am closing it and will handle the issue at #2010561. Thanks for reporting!

*** This bug has been marked as a duplicate of bug 2010561 ***