Add extra policy for xrdp session

This commit is contained in:
Jinming Wu, Patrick 2020-05-11 19:45:04 +08:00
parent 8d26a3036c
commit 81b1cbbfc2
No known key found for this signature in database
GPG Key ID: 9DD33DF28FC324F1

View File

@ -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