-
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
13 changed files
with
186 additions
and
28 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,10 @@ | ||
# This file is part of systemd. | ||
# | ||
# systemd is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation; either version 2.1 of the License, or | ||
# (at your option) any later version. | ||
|
||
#Type Name ID GECOS Home directory Shell | ||
u deepin-api-device - - | ||
m deepin-api-device netdev |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[D-BUS Service] | ||
Name=org.deepin.dde.Device1 | ||
Exec=/usr/lib/deepin-api/device | ||
User=root | ||
User=deepin-api-device | ||
SystemdService=dbus-org.deepin.dde.Device1.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
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,41 @@ | ||
[Unit] | ||
Description=Deepin Device Api Service | ||
|
||
Requisite=sound.target | ||
After=sound.target | ||
|
||
# Ask for the dbus socket. | ||
Wants=dbus.socket | ||
After=dbus.socket | ||
|
||
[Service] | ||
Type=dbus | ||
User=deepin-api-device | ||
BusName=org.deepin.dde.Device1 | ||
ExecStart=/usr/lib/deepin-api/device | ||
|
||
BindReadOnlyPaths=/run/dbus/system_bus_socket | ||
|
||
DeviceAllow=/dev/rfkill rw | ||
DevicePolicy=closed | ||
|
||
ProtectSystem=full | ||
ProtectHome=yes | ||
PrivateTmp=yes | ||
#PrivateDevices=yes | ||
PrivateNetwork=yes | ||
ProtectHostname=yes | ||
ProtectClock=yes | ||
ProtectKernelTunables=yes | ||
ProtectKernelModules=yes | ||
ProtectKernelLogs=yes | ||
ProtectControlGroups=yes | ||
RestrictAddressFamilies=AF_UNIX | ||
RestrictNamespaces=yes | ||
LockPersonality=yes | ||
RestrictRealtime=yes | ||
RestrictSUIDSGID=yes | ||
RemoveIPC=yes | ||
|
||
[Install] | ||
Alias=dbus-org.deepin.dde.Device1.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,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=yes | ||
PrivateTmp=yes | ||
PrivateDevices=yes | ||
PrivateNetwork=yes | ||
ProtectHostname=yes | ||
ProtectClock=yes | ||
ProtectKernelTunables=yes | ||
ProtectKernelModules=yes | ||
ProtectKernelLogs=yes | ||
ProtectControlGroups=yes | ||
RestrictAddressFamilies=AF_UNIX | ||
RestrictNamespaces=yes | ||
LockPersonality=yes | ||
RestrictRealtime=yes | ||
RestrictSUIDSGID=yes | ||
RemoveIPC=yes | ||
|
||
[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
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,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 | ||
|
||
StateDirectory=deepin-sound-player | ||
|
||
DeviceAllow=char-alsa rw | ||
DevicePolicy=closed | ||
|
||
ProtectSystem=full | ||
ProtectHome=yes | ||
#PrivateTmp=yes | ||
#PrivateDevices=yes | ||
PrivateNetwork=yes | ||
ProtectHostname=yes | ||
ProtectClock=yes | ||
ProtectKernelTunables=yes | ||
ProtectKernelModules=yes | ||
ProtectKernelLogs=yes | ||
ProtectControlGroups=yes | ||
RestrictAddressFamilies=AF_UNIX | ||
RestrictNamespaces=yes | ||
LockPersonality=yes | ||
RestrictRealtime=yes | ||
RestrictSUIDSGID=yes | ||
RemoveIPC=yes | ||
|
||
[Install] | ||
Alias=dbus-org.deepin.dde.SoundThemePlayer1.service |