Skip to content

Commit

Permalink
Merge pull request #10388 from jan-cerny/issue10232
Browse files Browse the repository at this point in the history
Explicitly set SELinux type
  • Loading branch information
Mab879 authored Mar 29, 2023
2 parents 4ed4fdb + afae7d7 commit da008db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2175290
# see https://github.com/ComplianceAsCode/content/issues/10232
chcon -t zero_device_t /dev/userfaultfd

touch /dev/foo
restorecon -F /dev/foo
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2175290
# see https://github.com/ComplianceAsCode/content/issues/10232
chcon -t zero_device_t /dev/userfaultfd

ln -s /dev/cpu /dev/foo
restorecon -F /dev/foo

0 comments on commit da008db

Please sign in to comment.