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

Getting partitions with hidepid=2 on proc fails #1212

Closed
1 of 5 tasks
rikvdh opened this issue Dec 30, 2021 · 1 comment
Closed
1 of 5 tasks

Getting partitions with hidepid=2 on proc fails #1212

rikvdh opened this issue Dec 30, 2021 · 1 comment

Comments

@rikvdh
Copy link

rikvdh commented Dec 30, 2021

Describe the bug
When getting disk.Partitions on a system for an unprivileged user, whilst having hidepid=2 option on the proc-mount fails.

Behavior was broken by this commit: b39f8bb#diff-1c057146d22f660d0d6142cbda77095e8621efa99d8b4058bbf885c81e6e397e

/proc/1 might not be available. Perhaps a fallback to self can be added?

Environment (please complete the following information):

  • Windows: [paste the result of ver]
  • Linux: [paste contents of /etc/os-release and the result of uname -a]
  • Mac OS: [paste the result of sw_vers and uname -a
  • FreeBSD: [paste the result of freebsd-version -k -r -u and uname -a]
  • OpenBSD: [paste the result of uname -a]
@Lomanic
Copy link
Collaborator

Lomanic commented Jan 1, 2022

Adding a fallback to /proc/self is tracked in #1159

A workaround is mentioned in #1024 (comment) (adding user to a specific group and mount procfs with gid option)

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

No branches or pull requests

2 participants