mirror of
https://github.com/rd235/cado
synced 2025-06-05 21:59:29 +02:00
some ifndef/define added-to cope with old prctl.h
This commit is contained in:
@@ -25,6 +25,17 @@
|
||||
#include <sys/prctl.h>
|
||||
#include <set_ambient_cap.h>
|
||||
|
||||
/* just in case prctl.h is not providing these definitions */
|
||||
#ifndef PR_CAP_AMBIENT
|
||||
#define PR_CAP_AMBIENT 47
|
||||
#endif
|
||||
#ifndef PR_CAP_AMBIENT_RAISE
|
||||
#define PR_CAP_AMBIENT_RAISE 2
|
||||
#endif
|
||||
#ifndef PR_CAP_AMBIENT_LOWER
|
||||
#define PR_CAP_AMBIENT_LOWER 3
|
||||
#endif
|
||||
|
||||
void set_ambient_cap(uint64_t capset)
|
||||
{
|
||||
cap_value_t cap;
|
||||
|
Reference in New Issue
Block a user