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;
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
add a comment
|
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
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
add a comment
|
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
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
virtualization apparmor
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
add a comment
|
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
add a comment
|
1 Answer
1
active
oldest
votes
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
add a comment
|
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
);
);
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%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
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
add a comment
|
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
add a comment
|
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
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
answered May 29 at 13:58
Christian EhrhardtChristian Ehrhardt
7365 silver badges10 bronze badges
7365 silver badges10 bronze badges
add a comment
|
add a comment
|
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.
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%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
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
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