Issues in unconfined services.

Posted on

Hi,

I had previously confined few services of RHEL 8 and now I'm trying to unconfined them but not able to unconfined service.
Below the some command I've tried

  1. chcon -t unconfined_service_t /path/to/the/service
  2. semanage fcontext -d -t unconfined_service_t /path/to/the/service
    3.chcon --reference=/path/to/unconfined/service /path/to/the/service
    4.restorecon /path/to/the/service
    5.restorecon reset /path/to/service context system_u:system_r:sisamddaemon_t:s0->system_u:system_r:unconfined_service_t:s0
    6.semanage fcontext -a -t unconfined_service_t /path/to/the/service

but none of the command worked. 1st command return
chcon: failed to change context of '/path/to/service' to ‘system_u:object_r:unconfined_service_t:s0’: Permission denied

ValueError: Type unconfined_service_t is invalid, must be a file or device type

Please suggest command to unconfined the service.

Thanks,

Responses