[GH-ISSUE #381] nbfcservice.sh fail to execute due to SELinux. #342

Closed
opened 2026-02-26 00:32:23 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem 2026-02-26 00:32:23 +03:00
  • closed this issue
  • added the
    Stale
    info
    labels
Author
Owner

@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

<!-- gh-comment-id:562787343 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#342
No description provided.