linux-capabilities Questions

0

I tried to run a simple python UDP echo-server listening on Port 507 inside a docker container that uses a non-root user. The Dockerfile looks like this: FROM docker.io/centos RUN yum -y install...
Tyrannicide asked 9/9, 2016 at 9:12

3

Solved

I want to make system usable without setuid, file "+p" capabilities, and in general without things which are disabled when I set PR_SET_NO_NEW_PRIVS. With this approach (init sets PR_SET_NO_NEW_PR...
Jellaba asked 31/1, 2013 at 22:31

2

Solved

I'm trying to write a program which requires elevated capabilities (rather than simply run it with sudo). However, none of the capabilities I set using setcap seem to transfer into the process once...
Liverwort asked 16/8, 2016 at 2:36

5

Solved

I use LD_LIBRARY_PATH to set the path of a certain user library for an application. But if I set capabilities on this application sudo setcap CAP_NET_BIND_SERVICE=eip myapplication then LD_LIBRA...
Bookish asked 23/3, 2012 at 16:47

1

Can somebody please explain to me how to use or set CAP_SYS_ADMIN in c? I need that capability to unmount a usb drive but don't know how to use it.
Tomas asked 22/10, 2014 at 9:34

1

TL;DR: Why are cap_net_raw, cap_net_admin capabilities only working in /usr/bin (or /usr/sbin), but not other places? Can this be configured someplace? I'm having problems assigning capabilities t...
Indo asked 17/3, 2015 at 13:2

1

Solved

How does one make an RPM which sets the POSIX capabilities of a file? If I try doing rpmbuild as a non-root user then I get an error when my makefile's install hooks try to run setcap, but if I don...
Judithjuditha asked 12/11, 2014 at 22:36

2

Solved

I am reading output from another process which generates output (slow and infinite). Because I want to read this data in real-time I use "stdbuf -oL" (line-buffered, data is text). I do not have co...
Leavenworth asked 30/11, 2012 at 11:7

4

There appears to be support for fine-grained capabilities in Linux kernel, which allows granting privileges to a process to do things like, for example, opening raw sockets or raising thread ...
Linguistic asked 24/12, 2009 at 4:49

1

Solved

In a C program, you can edit your capabilities with cap_set_proc from libcap. How can I achieve the same in a Perl program?
Blend asked 16/5, 2013 at 16:17

3

I'm using Linux POSIX mqueue implementation, and I have a problem. For current kernel, the max message size is 1MB, but I need to have no limit. man mq_overview says that if the process is privile...
Karolekarolina asked 18/9, 2010 at 0:43

2

Solved

I'm trying to write a daemon that will start as root using a setuid bit, but then quickly revert to the user running the process. The daemon, however needs to retain the ability to set new threads ...
Gilgamesh asked 1/11, 2012 at 18:28

© 2022 - 2024 — McMap. All rights reserved.