Consider allowing access to @{PROC}/@{pid}/limits

Bug #1613686 reported by Jacek Nykis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Medium
Jamie Strandboge

Bug Description

I created snap for a monitoring system (prometheus) and it periodically wants to read /proc/<pid>/limits.

It would be good to allow read access to this file. I think it may be common for server software to try that access.

This line should do it:
@{PROC}/@{pid}/limits r,

$ snap --version
snap 2.11+0.16.04
snapd 2.11+0.16.04
series 16
ubuntu 16.04

Zygmunt Krynicki (zyga)
Changed in snappy:
status: New → Triaged
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This is fine to add to the default apparmor template.

tags: added: snapd-interface
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This is the rule that should be used:

owner @{PROC}/@{pid}/limits r,

I can do it in my next batch of policy updates.

Changed in snappy:
assignee: nobody → Jamie Strandboge (jdstrand)
status: Triaged → In Progress
Changed in snappy:
importance: Undecided → Medium
milestone: none → 2.15
status: In Progress → Fix Committed
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

2.20 fixes this issue.

Changed in snappy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.