Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add conf AppArmor #397

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

add conf AppArmor #397

wants to merge 6 commits into from

Conversation

cognitus
Copy link

@cognitus cognitus commented Nov 27, 2022

Allow run valet with AppArmor enabled ref : #396

the modification of security profiles, i get it of run: # sudo aa-logprof

I'dont know if there another way to do this, but for now works

@cognitus cognitus changed the title add conf AppArmor WIP: add conf AppArmor Nov 28, 2022
@cognitus cognitus changed the title WIP: add conf AppArmor add conf AppArmor Nov 29, 2022
@Adesin-fr
Copy link
Collaborator

Hi,
Thanks for this PR !
I haven't looked in depth, but a first question comes to my mind :
Is this specific to debian/ubutun or is this behavior also on other distros (arch, ...)
Valet is also used by other distro's users, so we must be sure that this fix will not break installation on other's system !

*/
public function install()
{
if ((strpos($this->cli->run("aa-status"), 'is loaded') == 0)) {
Copy link
Author

@cognitus cognitus Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this specific to debian/ubutun or is this behavior also on other distros (arch, ...)

OpenSUSE,Mandriva, too. In arch have the option to be active.
AppArmor is a module of kernel, so can be easy loaded in any distro, but cannot run with selinux active.

I added a condition to review if module is loaded, and now you mentioned I should implement in the construct done

@cognitus
Copy link
Author

@Adesin-fr after some days of test I have to comment,

  1. Sometimes when the kernel is updated is necessary use valet install for fix rules and permissions
  2. another solution is disable apparmor (check if is disable) as selinux, but personally, I prefer apparmor enable

meaby, we could recommend disable apparmor, but leave this solution as well

@sonarcloud
Copy link

sonarcloud bot commented Dec 12, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented May 29, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants