Add extra policy for xrdp session

arbitrary-model-names
Jinming Wu, Patrick 5 years ago
parent 8d26a3036c
commit 81b1cbbfc2
No known key found for this signature in database
GPG Key ID: 9DD33DF28FC324F1

@ -103,6 +103,15 @@ ResultInactive=no
ResultActive=yes
EOF
cat >/etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla <<EOF
[Allow Package Management all Users]
Identity=unix-user:*
Action=org.freedesktop.packagekit.system-sources-refresh
ResultAny=yes
ResultInactive=yes
ResultActive=yes
EOF
sed -i${CHANGED_FILE_SUFFIX} -e 's|After=|ConditionPathExists=!/var/lib/oem-config/run\nAfter=|g' "${scratch_d}/lib/systemd/system/xrdp.service"
# End xrdp customisation

Loading…
Cancel
Save