Ask Your Question
0

Failing to set SELinux context on NAS drive

asked 2016-10-28 05:28:30 -0500

adam93 gravatar image

I'm getting the below error when copying a file from my puppet master to a puppet agent. I don't get any errors when moving the file to a local location on the server e.g. /tmp but I do when I move it to the NAS drive connected to the server (where it needs to be). Although the file appears to still copy over fine with the correct assigned permissions, group, owner and content... Anyone know what the error is and how I can get rid of it?

Puppet version: v3.8.7

Agent is running on Oracle Enterprise Linux 5.3


Info: Applying configuration version '1477650382'

Warning: Failed to set SELinux context systemu:objectr:defaultt on /mounteddrive/tempdir/puppetagent_test

Notice: /File[/mounteddrive/tempdir/puppetagenttest]/seltype: seltype changed 'nfst' to 'defaultt'

Notice: Finished catalog run in 0.06 seconds

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-28 05:53:03 -0500

adam93 gravatar image

Finally found the answer shortly after posting this. For anyone else who stumbles along this setting the seltype in the manifest definition has removed both of the errors even though it was doing it anyway.

seltype => nfs_t,

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-10-28 05:28:30 -0500

Seen: 19 times

Last updated: Oct 28 '16