Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: securebits.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_SECUREBITS_H
[1] Fix | Delete
#define _LINUX_SECUREBITS_H
[2] Fix | Delete
[3] Fix | Delete
/* Each securesetting is implemented using two bits. One bit specifies
[4] Fix | Delete
whether the setting is on or off. The other bit specify whether the
[5] Fix | Delete
setting is locked or not. A setting which is locked cannot be
[6] Fix | Delete
changed from user-level. */
[7] Fix | Delete
#define issecure_mask(X) (1 << (X))
[8] Fix | Delete
[9] Fix | Delete
#define SECUREBITS_DEFAULT 0x00000000
[10] Fix | Delete
[11] Fix | Delete
/* When set UID 0 has no special privileges. When unset, we support
[12] Fix | Delete
inheritance of root-permissions and suid-root executable under
[13] Fix | Delete
compatibility mode. We raise the effective and inheritable bitmasks
[14] Fix | Delete
*of the executable file* if the effective uid of the new process is
[15] Fix | Delete
0. If the real uid is 0, we raise the effective (legacy) bit of the
[16] Fix | Delete
executable file. */
[17] Fix | Delete
#define SECURE_NOROOT 0
[18] Fix | Delete
#define SECURE_NOROOT_LOCKED 1 /* make bit-0 immutable */
[19] Fix | Delete
[20] Fix | Delete
#define SECBIT_NOROOT (issecure_mask(SECURE_NOROOT))
[21] Fix | Delete
#define SECBIT_NOROOT_LOCKED (issecure_mask(SECURE_NOROOT_LOCKED))
[22] Fix | Delete
[23] Fix | Delete
/* When set, setuid to/from uid 0 does not trigger capability-"fixup".
[24] Fix | Delete
When unset, to provide compatiblility with old programs relying on
[25] Fix | Delete
set*uid to gain/lose privilege, transitions to/from uid 0 cause
[26] Fix | Delete
capabilities to be gained/lost. */
[27] Fix | Delete
#define SECURE_NO_SETUID_FIXUP 2
[28] Fix | Delete
#define SECURE_NO_SETUID_FIXUP_LOCKED 3 /* make bit-2 immutable */
[29] Fix | Delete
[30] Fix | Delete
#define SECBIT_NO_SETUID_FIXUP (issecure_mask(SECURE_NO_SETUID_FIXUP))
[31] Fix | Delete
#define SECBIT_NO_SETUID_FIXUP_LOCKED \
[32] Fix | Delete
(issecure_mask(SECURE_NO_SETUID_FIXUP_LOCKED))
[33] Fix | Delete
[34] Fix | Delete
/* When set, a process can retain its capabilities even after
[35] Fix | Delete
transitioning to a non-root user (the set-uid fixup suppressed by
[36] Fix | Delete
bit 2). Bit-4 is cleared when a process calls exec(); setting both
[37] Fix | Delete
bit 4 and 5 will create a barrier through exec that no exec()'d
[38] Fix | Delete
child can use this feature again. */
[39] Fix | Delete
#define SECURE_KEEP_CAPS 4
[40] Fix | Delete
#define SECURE_KEEP_CAPS_LOCKED 5 /* make bit-4 immutable */
[41] Fix | Delete
[42] Fix | Delete
#define SECBIT_KEEP_CAPS (issecure_mask(SECURE_KEEP_CAPS))
[43] Fix | Delete
#define SECBIT_KEEP_CAPS_LOCKED (issecure_mask(SECURE_KEEP_CAPS_LOCKED))
[44] Fix | Delete
[45] Fix | Delete
/* When set, a process cannot add new capabilities to its ambient set. */
[46] Fix | Delete
#define SECURE_NO_CAP_AMBIENT_RAISE 6
[47] Fix | Delete
#define SECURE_NO_CAP_AMBIENT_RAISE_LOCKED 7 /* make bit-6 immutable */
[48] Fix | Delete
[49] Fix | Delete
#define SECBIT_NO_CAP_AMBIENT_RAISE (issecure_mask(SECURE_NO_CAP_AMBIENT_RAISE))
[50] Fix | Delete
#define SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED \
[51] Fix | Delete
(issecure_mask(SECURE_NO_CAP_AMBIENT_RAISE_LOCKED))
[52] Fix | Delete
[53] Fix | Delete
#define SECURE_ALL_BITS (issecure_mask(SECURE_NOROOT) | \
[54] Fix | Delete
issecure_mask(SECURE_NO_SETUID_FIXUP) | \
[55] Fix | Delete
issecure_mask(SECURE_KEEP_CAPS) | \
[56] Fix | Delete
issecure_mask(SECURE_NO_CAP_AMBIENT_RAISE))
[57] Fix | Delete
#define SECURE_ALL_LOCKS (SECURE_ALL_BITS << 1)
[58] Fix | Delete
[59] Fix | Delete
#endif /* _LINUX_SECUREBITS_H */
[60] Fix | Delete
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function