Change SE Linux context label of a specific folder inside a cifs mount
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have cifs mount on my setup mounted via /etc/fstab with context set to system_u:object_r:cifs_t:s0.
There are some specific folders that I want to override default context to set public_content_t so I can share those folders between httpd and cifs processes.
1) I don't want mount entire mount point with public_content_t.
2) I don't want to set SE bool to make httpd access cifs.
I tried overriding semanage fcontext and chcon and tried many things for days now. It seems like SE Linux capability is run out to make the change satisfying 1) and 2)
Can anyone please help me to give pointers or your kind advice's?
Thanks in advance!!!
linux apache-http-server mount cifs selinux
add a comment |
I have cifs mount on my setup mounted via /etc/fstab with context set to system_u:object_r:cifs_t:s0.
There are some specific folders that I want to override default context to set public_content_t so I can share those folders between httpd and cifs processes.
1) I don't want mount entire mount point with public_content_t.
2) I don't want to set SE bool to make httpd access cifs.
I tried overriding semanage fcontext and chcon and tried many things for days now. It seems like SE Linux capability is run out to make the change satisfying 1) and 2)
Can anyone please help me to give pointers or your kind advice's?
Thanks in advance!!!
linux apache-http-server mount cifs selinux
As much as I hate to admit, this can't be done. So accepting the only answer that mentioned this can't be done.
– Lolitha Ratnayake
Mar 14 at 22:31
add a comment |
I have cifs mount on my setup mounted via /etc/fstab with context set to system_u:object_r:cifs_t:s0.
There are some specific folders that I want to override default context to set public_content_t so I can share those folders between httpd and cifs processes.
1) I don't want mount entire mount point with public_content_t.
2) I don't want to set SE bool to make httpd access cifs.
I tried overriding semanage fcontext and chcon and tried many things for days now. It seems like SE Linux capability is run out to make the change satisfying 1) and 2)
Can anyone please help me to give pointers or your kind advice's?
Thanks in advance!!!
linux apache-http-server mount cifs selinux
I have cifs mount on my setup mounted via /etc/fstab with context set to system_u:object_r:cifs_t:s0.
There are some specific folders that I want to override default context to set public_content_t so I can share those folders between httpd and cifs processes.
1) I don't want mount entire mount point with public_content_t.
2) I don't want to set SE bool to make httpd access cifs.
I tried overriding semanage fcontext and chcon and tried many things for days now. It seems like SE Linux capability is run out to make the change satisfying 1) and 2)
Can anyone please help me to give pointers or your kind advice's?
Thanks in advance!!!
linux apache-http-server mount cifs selinux
linux apache-http-server mount cifs selinux
asked Mar 4 at 5:24
Lolitha RatnayakeLolitha Ratnayake
1516
1516
As much as I hate to admit, this can't be done. So accepting the only answer that mentioned this can't be done.
– Lolitha Ratnayake
Mar 14 at 22:31
add a comment |
As much as I hate to admit, this can't be done. So accepting the only answer that mentioned this can't be done.
– Lolitha Ratnayake
Mar 14 at 22:31
As much as I hate to admit, this can't be done. So accepting the only answer that mentioned this can't be done.
– Lolitha Ratnayake
Mar 14 at 22:31
As much as I hate to admit, this can't be done. So accepting the only answer that mentioned this can't be done.
– Lolitha Ratnayake
Mar 14 at 22:31
add a comment |
1 Answer
1
active
oldest
votes
I believe this can't be done. I'd like to be proven wrong though, but I was dealing with the same issue about a year ago and I ended up having to create a subfolder under the NFS share and mount that sub-directory as a separate mount point with the desired context
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411049%2fchange-se-linux-context-label-of-a-specific-folder-inside-a-cifs-mount%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I believe this can't be done. I'd like to be proven wrong though, but I was dealing with the same issue about a year ago and I ended up having to create a subfolder under the NFS share and mount that sub-directory as a separate mount point with the desired context
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
add a comment |
I believe this can't be done. I'd like to be proven wrong though, but I was dealing with the same issue about a year ago and I ended up having to create a subfolder under the NFS share and mount that sub-directory as a separate mount point with the desired context
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
add a comment |
I believe this can't be done. I'd like to be proven wrong though, but I was dealing with the same issue about a year ago and I ended up having to create a subfolder under the NFS share and mount that sub-directory as a separate mount point with the desired context
I believe this can't be done. I'd like to be proven wrong though, but I was dealing with the same issue about a year ago and I ended up having to create a subfolder under the NFS share and mount that sub-directory as a separate mount point with the desired context
answered Mar 4 at 12:57
Tomas HrubovcakTomas Hrubovcak
263
263
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
add a comment |
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
Thanks Tomas . Yes I also believe this can't be done after trying so many options. Well lets just wait couple of days to see if any advanced super users can advice on this.
– Lolitha Ratnayake
Mar 4 at 21:29
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1411049%2fchange-se-linux-context-label-of-a-specific-folder-inside-a-cifs-mount%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As much as I hate to admit, this can't be done. So accepting the only answer that mentioned this can't be done.
– Lolitha Ratnayake
Mar 14 at 22:31