File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ $RSYNC \
165165
166166# Fix perms. Unsure why these break
167167# FIXME: Find out why and remove
168+ echo Fixing up directory permissions
168169chmod 750 ./usr/etc/audit
169170chmod 750 ./usr/etc/audit/rules.d
170171chmod 755 ./usr/etc/bluetooth
@@ -186,6 +187,18 @@ chmod 700 ./usr/lib/ostree-boot/grub2
186187chmod 700 ./usr/lib/ostree-boot/grub2/fonts
187188chmod 750 ./usr/libexec/initscripts/legacy-actions/auditd
188189
190+ # Restore expected file capabilities
191+ # PR your own until we figure out the source
192+ # Of the misconfiguration (probably OSTree)
193+ echo Fixing up executable capabilities
194+ setcap cap_dac_override,cap_net_admin,cap_net_raw=eip ./usr/bin/dumpcap
195+ setcap cap_sys_nice=ep ./usr/bin/kwin_wayland
196+ setcap cap_setgid=ep ./usr/bin/newgidmap
197+ setcap cap_setuid=ep ./usr/bin/newuidmap
198+ setcap cap_net_bind_service=ep ./usr/bin/rcp
199+ setcap cap_net_bind_service=ep ./usr/bin/rlogin
200+ setcap cap_net_bind_service=ep ./usr/bin/rsh
201+
189202# Fix polkid group
190203POLKIT_ID=$( cat ./usr/lib/group | grep polkitd | cut -d: -f3)
191204if [ -z " $POLKIT_ID " ]; then
You can’t perform that action at this time.
0 commit comments