Skip to content

Commit

Permalink
Add w permission to iso in apparmor profile
Browse files Browse the repository at this point in the history
Apparently creating a hard link needs write permission in target as well
  • Loading branch information
andrii-suse committed Sep 17, 2024
1 parent 9d68546 commit ddb3ec4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
/var/lib/openqa/osc-plugin-factory/factory-package-news/factory-package-news.py rUx,
/usr/share/openqa/script/openqa-cli rPx -> /opt/openqa-trigger-from-obs/script/rsync.sh//openqa_cli,
/usr/bin/openqa-cli rPx -> /opt/openqa-trigger-from-obs/script/rsync.sh//openqa_cli,
/var/lib/openqa/share/factory/repo/** rwl, # need write and link permissions, because bsdtar may extract iso here
/var/lib/openqa/share/factory/{iso,hdd,other}/** r,
/var/lib/openqa/share/factory/{repo,iso}/** rwl, # need write and link permissions, because bsdtar may extract iso here
/var/lib/openqa/share/factory/{hdd,other}/** r,
/{usr/bin,bin}/bash mrix,
owner /proc/*/fd/* w,

Expand Down
2 changes: 1 addition & 1 deletion t/podman/script/openSUSE:Leap:15.2:Staging:A.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ touch /mockOBS/openSUSE\:Leap\:15.2\:Staging\:A/images/x86_64/product/openSUSE-L
touch /mockOBS/openSUSE\:Leap\:15.2\:Staging\:A/images/x86_64/product/openSUSE-Leap-15.2-DVD-x86_64-Build248.1-Media.iso.sha256
chown -R "$dbuser" /mockOBS

prepare_project openSUSE:Leap:15.2:Staging:A -stage
prepare_project openSUSE:Leap:15.2:Staging:A stage

set -x
# make sure run did happen
Expand Down

0 comments on commit ddb3ec4

Please sign in to comment.