Closed neutronscott closed 2 years ago
[user@server ~]$ sudo -r unconfined_r -t unconfined_t -i -u oracle bash sudo: unable to change directory to /home/oracle: Permission denied sudo: unable to execute /bin/bash: Permission denied [user@server ~]$ sudo -r unconfined_r -t unconfined_t -s -u oracle bash [oracle@server user ]$ cd [oracle@server ~ ]$ pwd /home/oracle [oracle@server ~ ]$
This is because /home/oracle is a different context than original user can access. SELinux role isn't set until later.
The chdir needs to be deferred until sesh is run for the SELinux case.
This should be fixed by cf25035
This is because /home/oracle is a different context than original user can access. SELinux role isn't set until later.