-
Notifications
You must be signed in to change notification settings - Fork 375
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
RFE: prevent scriptlet network access #2632
Comments
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Sep 15, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Sep 15, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (rpm-software-management#2635). Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Sep 15, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (rpm-software-management#2635). Suggested-by: Johannes Segitz <[email protected]> Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Sep 15, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (rpm-software-management#2635). Suggested-by: Johannes Segitz <[email protected]> Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Sep 28, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (rpm-software-management#2635). Add a testcase for private /tmp Suggested-by: Johannes Segitz <[email protected]> Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Sep 28, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (rpm-software-management#2635). Add a testcase for private /tmp Suggested-by: Johannes Segitz <[email protected]> Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
to pmatilai/rpm
that referenced
this issue
Oct 9, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (rpm-software-management#2635). Add a testcase for private /tmp Suggested-by: Johannes Segitz <[email protected]> Fixes: rpm-software-management#2632 Fixes: rpm-software-management#2665
pmatilai
added a commit
that referenced
this issue
Oct 11, 2023
A plugin is a convenient place to hide Linux-specific functionality. Implemented in this initial version are: - Optional private mounts during scriptlet execution, useful for protecting the system from scriptlets (eg /home) and the scriptlets from themselves (eg insecure /tmp usage) - Optionally disable network access during scriptlet execution Note that at this time, scriplets executed with the embedded Lua interpreter are not covered by this because they run inside the main rpm process instead of forking (#2635). Add a testcase for private /tmp Suggested-by: Johannes Segitz <[email protected]> Fixes: #2632 Fixes: #2665
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Network access in both build and install scriptlets is basically a packaging bug (and a security risk) as the result depends on external factors, and various build-systems already enforce this on top of rpmbuild. I see no reason we could or could not do this on the rpm-level already, both for build and install-time scriptlets. If it turns out to break too much we can always add an configurable option for it.
This is expected to be a Linux-only feature (unshare network namespace from the scriptlets), but other platforms with similar technologies could be supported too.
The text was updated successfully, but these errors were encountered: