Skip to content

Commit

Permalink
debian: Add rules for reading profiles from distro and local dirs
Browse files Browse the repository at this point in the history
Allow a user to pass profiles from the distro or local dirs directly
to swtpm. A rule to allow reading profiles from somewhere under the
HOME directory already exists.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed Oct 2, 2024
1 parent 34e5103 commit 47d37cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion debian/usr.bin.swtpm
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ profile swtpm /usr/bin/swtpm {

/run/libvirt/qemu/swtpm/*.pid rwk,
/run/libvirt/qemu/swtpm/*.sock rwk,
/tmp/** rwk,
/var/lib/libvirt/swtpm/** wk,
/usr/share/swtpm/profiles/*.json r, # distro profiles
/etc/swtpm/profiles/*.json r, # local profiles
/tmp/** rwk,

owner /dev/vtpmx rw,
owner /etc/nsswitch.conf r,
Expand Down

0 comments on commit 47d37cc

Please sign in to comment.