Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ CMakeLists.txt.user*
.cursor
.specstory
.cursorindexingignore
.claude_settings.json
# Auto Claude data directory
.auto-claude/

# vs code
.vscode/

# debian
debian/.debhelper/
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ override_dh_auto_configure:
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DAPP_VERSION=$(DEB_VERSION_UPSTREAM) \
-DCVERSION=$(DEB_VERSION_UPSTREAM) \
-DVERSION=$(DEB_VERSION_UPSTREAM) \
-DQT_DIR=$(QT_DIR)
%:
dh $@ --parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,55 @@ Type=dbus
BusName=org.deepin.DeviceControl
User=root
ExecStart=/usr/bin/deepin-devicecontrol
CapabilityBoundingSet=~CAP_NET_RAW
MemoryMax=8G
StandardOutput=journal
MemoryMax=2G
IOWeight=200
ProtectSystem=full
ProtectHome=true
ProtectProc=invisible
PrivateTmp=true
PrivateDevices=false
PrivateIPC=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=false
NoNewPrivileges=true
MemoryDenyWriteExecute=true
RestrictSUIDSGID=true
LimitMEMLOCK=infinity
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_MODULE CAP_SYS_PTRACE CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_BOOT CAP_KILL CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_SYS_ADMIN CAP_SYS_MODULE CAP_SYS_PTRACE CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_BOOT CAP_KILL CAP_NET_BIND_SERVICE
ExecPaths=/usr/bin /usr/sbin /bin /sbin /lib /lib64 /usr/lib /usr/lib64
NoExecPaths=/tmp /var/tmp /home /root
ReadWritePaths=/var/lib/deepin-devicemanager
ReadWritePaths=/var/log
ReadWritePaths=/var/cache
ReadWritePaths=/tmp
ReadWritePaths=/var/tmp
ReadWritePaths=/etc/modprobe.d
ReadWritePaths=/run
ReadOnlyPaths=/sys
ReadOnlyPaths=/proc
ReadOnlyPaths=/etc
ReadOnlyPaths=/usr
ReadOnlyPaths=/lib
ReadOnlyPaths=/boot
InaccessiblePaths=-/etc/shadow
InaccessiblePaths=-/etc/NetworkManager/system-connections/
InaccessiblePaths=-/etc/pam.d/
InaccessiblePaths=-/etc/security/
InaccessiblePaths=-/etc/selinux/
InaccessiblePaths=-/etc/deepin-elf-verify/
InaccessiblePaths=-/etc/filearmor.d/
InaccessiblePaths=-/etc/crypttab
InaccessiblePaths=-/etc/fstab
InaccessiblePaths=-/sysroot/ostree/repo/
InaccessiblePaths=-/persistent/ostree/repo/
InaccessiblePaths=-/usr/share/uadp
InaccessiblePaths=-/etc/sudoers
InaccessiblePaths=-/etc/sudoers.d
OOMScoreAdjust=-500
Nice=-5

[Install]
WantedBy=multi-user.target