socket-default: Require CAP_NET_BIND_SERVICE for ports < 1024
Since we don't know which ports are used with socket-dynamic we can't demand the capability there, but it might still be required.
This commit is contained in:
@@ -32,8 +32,11 @@ typedef struct capabilities_t capabilities_t;
|
||||
# include <linux/capability.h>
|
||||
#endif
|
||||
|
||||
#ifndef CAP_NET_BIND_SERVICE
|
||||
# define CAP_NET_BIND_SERVICE 10
|
||||
#endif
|
||||
#ifndef CAP_NET_ADMIN
|
||||
#define CAP_NET_ADMIN 12
|
||||
# define CAP_NET_ADMIN 12
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user