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

Snap fails to read hugepages folder on sysfs #66

Closed
phvalguima opened this issue Jun 24, 2024 · 2 comments
Closed

Snap fails to read hugepages folder on sysfs #66

phvalguima opened this issue Jun 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@phvalguima
Copy link
Contributor

At early start of the snap, the JVM will try to read the /sys/kernel/mm/hugepages/ and fail with permission denied:

[32370.680133] audit: type=1400 audit(1719167877.129:1244): apparmor="DENIED" operation="open" class="file" profile="snap.opensearch.daemon" name="/sys/kernel/mm/hugepages/" pid=96690 
comm="java" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0                          
[32370.847235] audit: type=1400 audit(1719167877.293:1245): apparmor="DENIED" operation="open" class="file" profile="snap.opensearch.daemon" name="/sys/kernel/mm/hugepages/" pid=96707 
comm="java" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0                          
[32370.917110] audit: type=1400 audit(1719167877.365:1246): apparmor="DENIED" operation="open" class="file" profile="snap.opensearch.daemon" name="/sys/kernel/mm/hugepages/" pid=96728 
comm="java" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0                          
[32371.109975] audit: type=1400 audit(1719167877.557:1247): apparmor="DENIED" operation="open" class="file" profile="snap.opensearch.daemon" name="/sys/kernel/mm/hugepages/" pid=96746 
comm="java" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0                          
[32371.709342] audit: type=1400 audit(1719167878.157:1248): apparmor="DENIED" operation="open" class="file" profile="snap.opensearch.daemon" name="/sys/kernel/mm/hugepages/" pid=96686 
comm="java" requested_mask="r" denied_mask="r" fsuid=584788 ouid=0                          
[32375.271374] audit: type=1400 audit(1719167881.717:1249): apparmor="DENIED" operation="mkdir" class="file" profile="snap.opensearch.daemon" name="/nonexistent/" pid=96686 comm="java"
 requested_mask="c" denied_mask="c" fsuid=584788 ouid=584788                                
[32375.271385] audit: type=1400 audit(1719167881.717:1250): apparmor="DENIED" operation="mkdir" class="file" profile="snap.opensearch.daemon" name="/nonexistent/" pid=96686 comm="java"
 requested_mask="c" denied_mask="c" fsuid=584788 ouid=584788                                
[32375.272431] audit: type=1400 audit(1719167881.721:1251): apparmor="DENIED" operation="mkdir" class="file" profile="snap.opensearch.daemon" name="/nonexistent/" pid=96686 comm="java"
 requested_mask="c" denied_mask="c" fsuid=584788 ouid=584788                                
[32375.272444] audit: type=1400 audit(1719167881.721:1252): apparmor="DENIED" operation="mkdir" class="file" profile="snap.opensearch.daemon" name="/nonexistent/" pid=96686 comm="java"
 requested_mask="c" denied_mask="c" fsuid=584788 ouid=584788
@phvalguima phvalguima added the bug Something isn't working label Jun 24, 2024
Copy link

@phvalguima
Copy link
Contributor Author

Closed by #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant