You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add security restriction configurations to all service files
- Use the deepin-daemon user to run services whenever possible,
reducing privilege risks;
- Add a D-Bus policy to allow the deepin-daemon user to invoke the
HandleSystemEvent method;
- Deny users other than root and deepin-daemon from calling
HandleSystemEvent, strengthening access control;
- "Remove the unused update-metadata-info related scripts and
services.
Task: https://pms.uniontech.com/task-view-385069.html
# CapabilityBoundingSet= is not set because it would cause apt execution errors, such as setegid and other operations failing due to insufficient permissions.
8
+
# InaccessiblePaths is not set because dpkg needs to be called to upgrade the system.
9
+
# MemoryDenyWriteExecute=yes is not set because this is a Go program compiled with -pie option, which would prevent the process from starting.
10
+
# PrivateDevices=true is not set because grub-mkconfig is executed when creating backup deployment.
11
+
# PrivateTmp=true is not set because it relies on /tmp to record state.
12
+
# ProtectHome=true is not set because sudo is needed to connect to the user Session Bus and send DDE message notifications.
13
+
# ProtectKernelModules=true is not set because kernel packages need to be installed
14
+
# ProtectProc=true is not set because it needs to access caller process environment variables.
15
+
# ProtectSystem=strict is not set because dpkg needs to be called to upgrade the system.
16
+
# RestrictSUIDSGID=true is not set because some packages may need to set SUID and SGID during installation.
17
+
# StateDirectory=lastore is not set because it would conflict with the ownership of smartmirror-daemon and build-system-info services, which need to be owned by deepin-daemon, and enabling this would set the owner to root.
0 commit comments