How do I use a Whitelist approach for some files with App Armor?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I'm pretty new to using AppArmor and am unaware of all it's features. I was wondering if it is possible to apply Whitelisting behavior to some files with App Armor?



I think whitelisting and blacklisting is pretty well understood but, just so there are no misunderstanding, here is my definition:



Whitelist Approach to Access: tell App Armor that no Apps are to even be able to read certain files or write in them without being added to a white list (even if they don't have profiles).



Blacklist: as far as I can tell, this is what App Armor uses by default. If an newly installed application does not have an already existing App Profile, it will have access to everything that the user running it has access to (that is, until you make it's App armor profile and specifically interdict it).



That's ok for most applications, but I'd feel much better if for some important files, access is blocked to every app until I give the goahead.



Is there anyway of doing this? If so, can you please tell me how to do it?







share|improve this question


























    up vote
    1
    down vote

    favorite












    I'm pretty new to using AppArmor and am unaware of all it's features. I was wondering if it is possible to apply Whitelisting behavior to some files with App Armor?



    I think whitelisting and blacklisting is pretty well understood but, just so there are no misunderstanding, here is my definition:



    Whitelist Approach to Access: tell App Armor that no Apps are to even be able to read certain files or write in them without being added to a white list (even if they don't have profiles).



    Blacklist: as far as I can tell, this is what App Armor uses by default. If an newly installed application does not have an already existing App Profile, it will have access to everything that the user running it has access to (that is, until you make it's App armor profile and specifically interdict it).



    That's ok for most applications, but I'd feel much better if for some important files, access is blocked to every app until I give the goahead.



    Is there anyway of doing this? If so, can you please tell me how to do it?







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm pretty new to using AppArmor and am unaware of all it's features. I was wondering if it is possible to apply Whitelisting behavior to some files with App Armor?



      I think whitelisting and blacklisting is pretty well understood but, just so there are no misunderstanding, here is my definition:



      Whitelist Approach to Access: tell App Armor that no Apps are to even be able to read certain files or write in them without being added to a white list (even if they don't have profiles).



      Blacklist: as far as I can tell, this is what App Armor uses by default. If an newly installed application does not have an already existing App Profile, it will have access to everything that the user running it has access to (that is, until you make it's App armor profile and specifically interdict it).



      That's ok for most applications, but I'd feel much better if for some important files, access is blocked to every app until I give the goahead.



      Is there anyway of doing this? If so, can you please tell me how to do it?







      share|improve this question














      I'm pretty new to using AppArmor and am unaware of all it's features. I was wondering if it is possible to apply Whitelisting behavior to some files with App Armor?



      I think whitelisting and blacklisting is pretty well understood but, just so there are no misunderstanding, here is my definition:



      Whitelist Approach to Access: tell App Armor that no Apps are to even be able to read certain files or write in them without being added to a white list (even if they don't have profiles).



      Blacklist: as far as I can tell, this is what App Armor uses by default. If an newly installed application does not have an already existing App Profile, it will have access to everything that the user running it has access to (that is, until you make it's App armor profile and specifically interdict it).



      That's ok for most applications, but I'd feel much better if for some important files, access is blocked to every app until I give the goahead.



      Is there anyway of doing this? If so, can you please tell me how to do it?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 25 at 2:10

























      asked Apr 22 at 8:10









      thebunnyrules

      33529




      33529

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027137%2fhow-do-i-use-a-whitelist-approach-for-some-files-with-app-armor%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027137%2fhow-do-i-use-a-whitelist-approach-for-some-files-with-app-armor%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?