Merge ~andreserl/maas:chrony_nobody_lp1752616 into maas:master

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 7b6140d1b2882d92bef77f8bcefcd4ad11af2fb6
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~andreserl/maas:chrony_nobody_lp1752616
Merge into: maas:master
Diff against target: 10 lines (+1/-1)
1 file modified
snap/bin/run-chronyd (+1/-1)
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+340226@code.launchpad.net

Commit message

LP: #1752616 - Run chrony as the user 'nobody' inside the snap

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Selfie!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snap/bin/run-chronyd b/snap/bin/run-chronyd
2index e91c561..63ae480 100755
3--- a/snap/bin/run-chronyd
4+++ b/snap/bin/run-chronyd
5@@ -14,4 +14,4 @@ if [ ! -e "$SNAP_DATA/etc/chrony/chrony.conf" ]; then
6 fi
7
8 # Run ntpd.
9-exec $SNAP/usr/sbin/chronyd -d -f "$SNAP_DATA/etc/chrony/chrony.conf"
10+exec $SNAP/usr/sbin/chronyd -u nobody -d -f "$SNAP_DATA/etc/chrony/chrony.conf"

Subscribers

People subscribed via source and target branches