From: Carl Hetherington Date: Wed, 14 Jul 2021 21:17:59 +0000 (+0200) Subject: dcpomatic2_disk_writer needs cap_sys_admin otherwise umount fails. X-Git-Tag: v2.15.156~3 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b046c63cdaa1ac73dc9346de0ebd7958fc7f7a19 dcpomatic2_disk_writer needs cap_sys_admin otherwise umount fails. --- diff --git a/cscript b/cscript index 8071d9df8..0a68d5fb2 100644 --- a/cscript +++ b/cscript @@ -586,7 +586,7 @@ def package_debian(target, cpu, version, options): with open('debian/postinst', 'w') as f: print('#!/bin/sh', file=f) # Get the required capability to write to disks - print('setcap cap_dac_override+ep /usr/bin/dcpomatic2_disk_writer', file=f) + print('setcap "cap_dac_override+ep cap_sys_admin+ep" /usr/bin/dcpomatic2_disk_writer', file=f) target.command('./waf dist') f = open('debian/files', 'w') print('dcpomatic_%s-1_%s.deb video extra' % (version, cpu), file=f)