Change SE Linux context label of a specific folder inside a cifs mountmount a cifs share without...

If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?

Does Windows 10's telemetry include sending *.doc files if Word crashed?

What's a good word to describe a public place that looks like it wouldn't be rough?

How would an AI self awareness kill switch work?

Can a hotel cancel a confirmed reservation?

Eww, those bytes are gross

Why didn't Eru and/or the Valar intervene when Sauron corrupted Númenor?

How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?

Can the Count of Monte Cristo's calculation of poison dosage be explained?

What is Crew Dragon approaching in this picture?

Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?

How much time does it take for a broken magnet to recover its poles?

How should I state my MS degree in my CV when it was in practice a joint-program?

Connecting top and bottom of adjacent circles

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Avoiding morning and evening handshakes

How to push a box with physics engine by another object?

Table enclosed in curly brackets

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

LTSpice: When running a linear AC simulation, how to view the voltage ratio between two voltages?

Crystal compensation for temp and voltage

Is there a way to help users from having to clicking emails twice before logging into a new sandbox

ip vs ifconfig commands pros and cons

Where is this triangular-shaped space station from?



Change SE Linux context label of a specific folder inside a cifs mount


mount a cifs share without root/fstabMake network share accessible to multiple users on OSXLinux (Ubuntu) CIFS mount with restrictive umaskHow to mount an SMB share on Linux as normal user on the commandline nowadays?Yum repo on cifs mountMount cifs for 2 usersHow to mount Windows share on Linux without using passwords?SELinux: restorecon wont change context to httpd_sys_content_tWhat's the difference between “file_mode,dir_mode” and “gid” when mounting a CIFS share?Can't start LXC containers containing CIFS mount













0















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!!!









share



























    0















    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!!!









    share

























      0












      0








      0








      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!!!









      share














      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





      share












      share










      share



      share










      asked 4 mins ago









      Lolitha RatnayakeLolitha Ratnayake

      1314




      1314






















          0






          active

          oldest

          votes











          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
          });


          }
          });














          draft saved

          draft discarded


















          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

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...