summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-13 19:43:19 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-13 22:51:40 +0100
commitcb6b19fdbf3e8822916a2925906e9caaff43bc8c (patch)
treefcd84db167a821b6ca83b1159180751629183451 /cscript
parent6c429da71c7bbb3045b57e11a7040126915b6a62 (diff)
Remove setuid root and use setcap instead in RPM packages.
Diffstat (limited to 'cscript')
-rw-r--r--cscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/cscript b/cscript
index 1e3bb9c38..49a07fdb6 100644
--- a/cscript
+++ b/cscript
@@ -408,6 +408,7 @@ def make_spec(filename, version, target, options, requires=None):
print('', file=f)
print('%post', file=f)
print('/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :', file=f)
+ print('setcap "cap_dac_override+ep cap_sys_admin+ep" /usr/bin/dcpomatic2_disk_writer', file=f)
print('', file=f)
print('%postun', file=f)
print('if [ $1 -eq 0 ] ; then', file=f)