-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
加固 dbus 进程
- Loading branch information
Showing
4 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[Unit] | ||
Description=Deepin Locale Helper | ||
|
||
# Ask for the dbus socket. | ||
Wants=dbus.socket | ||
After=dbus.socket | ||
|
||
[Service] | ||
Type=dbus | ||
BusName=org.deepin.dde.LocaleHelper1 | ||
ExecStart=/usr/lib/deepin-api/locale-helper | ||
|
||
ReadWritePaths=/etc/default/locale | ||
ReadWritePaths=/etc/locale.gen | ||
ReadWritePaths=/usr/lib/locale/ | ||
ExecPaths=/usr/sbin/locale-gen | ||
|
||
DevicePolicy=closed | ||
|
||
ProtectSystem=full | ||
ProtectHome=true | ||
PrivateTmp=true | ||
PrivateDevices=true | ||
PrivateNetwork=true | ||
ProtectHostname=true | ||
ProtectClock=true | ||
ProtectKernelTunables=true | ||
ProtectKernelModules=true | ||
ProtectKernelLogs=true | ||
ProtectControlGroups=true | ||
RestrictAddressFamilies=AF_UNIX | ||
RestrictNamespaces=true | ||
LockPersonality=true | ||
RestrictRealtime=true | ||
RestrictSUIDSGID=true | ||
RemoveIPC=true | ||
|
||
[Install] | ||
Alias=dbus-org.deepin.dde.LocaleHelper1.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[Unit] | ||
Description=Deepin Sound Theme Player | ||
|
||
Requisite=sound.target | ||
After=sound.target | ||
|
||
# Ask for the dbus socket. | ||
Wants=dbus.socket | ||
After=dbus.socket | ||
|
||
[Service] | ||
Type=dbus | ||
BusName=org.deepin.dde.SoundThemePlayer1 | ||
User=deepin-sound-player | ||
ExecStart=/usr/lib/deepin-api/sound-theme-player | ||
|
||
ReadWritePaths=/var/lib/deepin-sound-player | ||
|
||
DevicePolicy=closed | ||
DeviceAllow=char-alsa rw | ||
|
||
ProtectSystem=full | ||
ProtectHome=true | ||
PrivateTmp=true | ||
#PrivateDevices=true | ||
PrivateNetwork=true | ||
ProtectHostname=true | ||
ProtectClock=true | ||
ProtectKernelTunables=true | ||
ProtectKernelModules=true | ||
ProtectKernelLogs=true | ||
ProtectControlGroups=true | ||
RestrictAddressFamilies=AF_UNIX | ||
RestrictNamespaces=true | ||
LockPersonality=true | ||
RestrictRealtime=true | ||
RestrictSUIDSGID=true | ||
RemoveIPC=true | ||
|
||
[Install] | ||
Alias=dbus-org.deepin.dde.SoundThemePlayer1.service |