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

Designate per-user(group) capabilities in sudoers file #388

Open
level-128 opened this issue Jul 21, 2024 · 0 comments
Open

Designate per-user(group) capabilities in sudoers file #388

level-128 opened this issue Jul 21, 2024 · 0 comments

Comments

@level-128
Copy link

Rationale:

Enable per-user(group) Linux capabilities(7) like feature in the sudoers file. While tools like setcap exist, they do not offer the same ease of use and integration with sudo's centralized access control model. sudoers configuration allows for granular command control but currently lacks the ability to specify capabilities categories besides NOEXEC.

Proposed Feature

Extend sudoers syntax to allow specifying capabilities for commands. These commands should be carefully designed to remain compatible with other platforms and older Linux kernel versions.

Some initial considerations for possible commands:

  • (NO)NETCTL: controls the administration of IP firewall, modify routing tables, raw sockets, bind a socket to Internet domain privileged ports.
  • (NO)RAWIO: Performing raw IO to various devices.

I'm pretty unsure whether it is feasible to provide such features under different platforms and maintain high compatibility.

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

No branches or pull requests

1 participant