mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-25 16:45:53 +03:00
[GH-ISSUE #381] nbfcservice.sh fail to execute due to SELinux. #342
Labels
No labels
Stale
bug
config
discussion
duplicate
enhancement
experimental
feature
help-wanted
info
invalid
invalid
pull-request
question
up-for-grabs
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nbfc-hirschmann#342
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mateli on GitHub (Nov 15, 2017).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/381
This need to be run on the file that are going to be run from nbfc.service:
semanage fcontext -a -t bin_t "/opt/nbfc/nbfcservice.sh"
restorecon -R /opt/nbfc
The first one changes the SELinux database and the second one applies the flags from the database to the file. If you only change the file information the next run of restorecon will remove that as it isn't in the database.
This applies to Fedora and other SELinux-based distributions.
@github-actions[bot] commented on GitHub (Dec 7, 2019):
This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed