Every time Libvirt VM is started, AppArmor profile for it gets removedWhat happens if I delete a profile in apparmorHow do I enable the AppArmor profile for Firefox?Where could I get the apparmor profile for latest Skype4? Why is there no Apparmor profile for the terminal?kvm/libvirt networking overviewinternal error: cannot load AppArmor profile 'libvirt-AppArmor genprof problem for apache2 on Ubuntu 18Apparmor permission for libvirt-qemuAppArmor profile enforced for different users

LTSpice Zener diode bug?

Teaching asymptotic notations at the beginning of Calculus

Is it plausible for a certain area of a continent to be/remain/become uninhabited for a long period of time?

Given a Fibonacci number , find the next Fibonacci number

How do social media apps notify you when someone else takes a screenshot of your profile?

Would fantasy dwarves be able to invent and/or manufacture the radio?

How do I redirect a subdomain with a wildcard?

How can a stock trade for a fraction of a cent?

What's the safest shape for homemade hard-candy

Can Chill Touch prevent Regeneration?

Diagnosing instant circuit breaker tripping, with nothing connected

10x10 grid with no unpainted hexominoes

Was Hitler exclaiming "Heil Hitler!" himself when saluting?

How does an Evocation Wizard's Overchannel ability interact with Chaos Bolt?

RAM stress test

Was Switzerland pressured either by Allies or Axis to take part in World War 2 at any time?

Use GPLv3 library in a closed system (no software distribution)

How to include conditional statements in NIntegrate?

Stamp of electrical department on letter head of recommendation letter

Matrix class in C#

Are there any known problems or attacks for using SHA1(AES_key) as the HMAC key?

Grade changes with auto grader

Why doesn't the nucleus have "nucleus-probability cloud"?

QGIS 3.6.1 problems with CRS



Every time Libvirt VM is started, AppArmor profile for it gets removed


What happens if I delete a profile in apparmorHow do I enable the AppArmor profile for Firefox?Where could I get the apparmor profile for latest Skype4? Why is there no Apparmor profile for the terminal?kvm/libvirt networking overviewinternal error: cannot load AppArmor profile 'libvirt-AppArmor genprof problem for apache2 on Ubuntu 18Apparmor permission for libvirt-qemuAppArmor profile enforced for different users






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















When I create Libvirt virtual machine with



virsh create


/etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234 and /etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234.files gets created. Then, when I save and start VM again, those files are getting removed - at every launch, even if I made edits in them.



Whats appropriate way to modify the apparmor profiles for Libvirt machine on ubuntu?










share|improve this question


























  • These files are generated and not meant to be edited manually. Why are you trying to change them? Perhaps there is some alternative approach to solve your actual problem.

    – Michael Hampton
    May 28 at 22:01


















0

















When I create Libvirt virtual machine with



virsh create


/etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234 and /etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234.files gets created. Then, when I save and start VM again, those files are getting removed - at every launch, even if I made edits in them.



Whats appropriate way to modify the apparmor profiles for Libvirt machine on ubuntu?










share|improve this question


























  • These files are generated and not meant to be edited manually. Why are you trying to change them? Perhaps there is some alternative approach to solve your actual problem.

    – Michael Hampton
    May 28 at 22:01














0












0








0








When I create Libvirt virtual machine with



virsh create


/etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234 and /etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234.files gets created. Then, when I save and start VM again, those files are getting removed - at every launch, even if I made edits in them.



Whats appropriate way to modify the apparmor profiles for Libvirt machine on ubuntu?










share|improve this question















When I create Libvirt virtual machine with



virsh create


/etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234 and /etc/apparmor.d/libvirt/libvirt-142341234-234123-4124-123-4234.files gets created. Then, when I save and start VM again, those files are getting removed - at every launch, even if I made edits in them.



Whats appropriate way to modify the apparmor profiles for Libvirt machine on ubuntu?







virtualization apparmor






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked May 28 at 21:09









darvindarvin

1011 bronze badge




1011 bronze badge















  • These files are generated and not meant to be edited manually. Why are you trying to change them? Perhaps there is some alternative approach to solve your actual problem.

    – Michael Hampton
    May 28 at 22:01


















  • These files are generated and not meant to be edited manually. Why are you trying to change them? Perhaps there is some alternative approach to solve your actual problem.

    – Michael Hampton
    May 28 at 22:01

















These files are generated and not meant to be edited manually. Why are you trying to change them? Perhaps there is some alternative approach to solve your actual problem.

– Michael Hampton
May 28 at 22:01






These files are generated and not meant to be edited manually. Why are you trying to change them? Perhaps there is some alternative approach to solve your actual problem.

– Michael Hampton
May 28 at 22:01











1 Answer
1






active

oldest

votes


















0


















first of all Michael is right, those files are generated and not meant to be edited.



To add custom rules you'd need to generally allow (for all guests) things right now. To do so you'd need to edit the conffile delivered by the package at



/etc/apparmor.d/abstractions/libvirt-qemu


Newer versions (>=18.10) have a local override defined to avoid any conffile questions on upgrades.



/etc/apparmor.d/local/abstractions/libvirt-qemu


I'm eager to provide per-guest overrides but for quite some time I'm waiting until apparmor will fully support optional include files. You'll see when that happens at bug 1745114






share|improve this answer



























    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',
    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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1146952%2fevery-time-libvirt-vm-is-started-apparmor-profile-for-it-gets-removed%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









    0


















    first of all Michael is right, those files are generated and not meant to be edited.



    To add custom rules you'd need to generally allow (for all guests) things right now. To do so you'd need to edit the conffile delivered by the package at



    /etc/apparmor.d/abstractions/libvirt-qemu


    Newer versions (>=18.10) have a local override defined to avoid any conffile questions on upgrades.



    /etc/apparmor.d/local/abstractions/libvirt-qemu


    I'm eager to provide per-guest overrides but for quite some time I'm waiting until apparmor will fully support optional include files. You'll see when that happens at bug 1745114






    share|improve this answer






























      0


















      first of all Michael is right, those files are generated and not meant to be edited.



      To add custom rules you'd need to generally allow (for all guests) things right now. To do so you'd need to edit the conffile delivered by the package at



      /etc/apparmor.d/abstractions/libvirt-qemu


      Newer versions (>=18.10) have a local override defined to avoid any conffile questions on upgrades.



      /etc/apparmor.d/local/abstractions/libvirt-qemu


      I'm eager to provide per-guest overrides but for quite some time I'm waiting until apparmor will fully support optional include files. You'll see when that happens at bug 1745114






      share|improve this answer




























        0














        0










        0









        first of all Michael is right, those files are generated and not meant to be edited.



        To add custom rules you'd need to generally allow (for all guests) things right now. To do so you'd need to edit the conffile delivered by the package at



        /etc/apparmor.d/abstractions/libvirt-qemu


        Newer versions (>=18.10) have a local override defined to avoid any conffile questions on upgrades.



        /etc/apparmor.d/local/abstractions/libvirt-qemu


        I'm eager to provide per-guest overrides but for quite some time I'm waiting until apparmor will fully support optional include files. You'll see when that happens at bug 1745114






        share|improve this answer














        first of all Michael is right, those files are generated and not meant to be edited.



        To add custom rules you'd need to generally allow (for all guests) things right now. To do so you'd need to edit the conffile delivered by the package at



        /etc/apparmor.d/abstractions/libvirt-qemu


        Newer versions (>=18.10) have a local override defined to avoid any conffile questions on upgrades.



        /etc/apparmor.d/local/abstractions/libvirt-qemu


        I'm eager to provide per-guest overrides but for quite some time I'm waiting until apparmor will fully support optional include files. You'll see when that happens at bug 1745114







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered May 29 at 13:58









        Christian EhrhardtChristian Ehrhardt

        7365 silver badges10 bronze badges




        7365 silver badges10 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f1146952%2fevery-time-libvirt-vm-is-started-apparmor-profile-for-it-gets-removed%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

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü