OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/26/2021 03:27:18 AM
rwxr-xr-x
📄
_G_config.h
932 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
aio.h
7.28 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
aliases.h
1.98 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
alloca.h
1.17 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ar.h
1.69 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
argp.h
24.82 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
argz.h
5.91 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
arpa
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
asm-generic
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
assert.h
4.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
btrfs
-
10/14/2020 08:20:04 AM
rwxr-xr-x
📄
byteswap.h
1.37 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
c++
-
09/19/2021 04:37:46 PM
rwxr-xr-x
📄
cifsidmap.h
6 KB
06/01/2022 04:19:46 PM
rw-r--r--
📄
complex.h
7 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
cpio.h
2.21 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
crypt.h
2.21 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ctype.h
10.71 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
dirent.h
12.19 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
dlfcn.h
6.85 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
drm
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
elf.h
166.04 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
endian.h
3.11 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
envz.h
2.8 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
err.h
2.16 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
errno.h
1.79 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
error.h
1.99 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
execinfo.h
1.49 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
expat.h
43.17 KB
11/18/2022 10:57:30 AM
rw-r--r--
📄
expat_external.h
5.4 KB
11/18/2022 10:57:30 AM
rw-r--r--
📄
fcntl.h
9.24 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
features.h
15.18 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fenv.h
5.72 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fmtmsg.h
3.16 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fnmatch.h
2.24 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fstab.h
3.04 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
fts.h
8.18 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ftw.h
5.13 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gawkapi.h
30.31 KB
02/11/2018 05:02:41 AM
rw-r--r--
📄
gconv.h
4.31 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
getopt.h
1.43 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
glob.h
6.46 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gnu-versions.h
2.29 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gnumake.h
2.84 KB
04/17/2018 12:12:28 PM
rw-r--r--
📄
grp.h
6.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
gshadow.h
4.42 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
iconv.h
1.81 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ifaddrs.h
2.77 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
inttypes.h
11.61 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
langinfo.h
17.43 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
lastlog.h
126 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
libgen.h
1.35 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
libintl.h
4.47 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
libio.h
918 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
limits.h
5.29 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
link.h
7.04 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
linux
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
locale.h
7.49 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
malloc.h
5.96 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
math.h
44.33 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
mcheck.h
2.38 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
memory.h
955 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📁
misc
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
mntent.h
3.28 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
monetary.h
1.76 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
mqueue.h
3.67 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
mtd
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📁
net
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netash
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netatalk
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netax25
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
netdb.h
27.39 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
neteconet
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netinet
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netipx
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netiucv
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netpacket
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netrom
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
netrose
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
nfs
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
nl_types.h
1.71 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
nss.h
1.83 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
obstack.h
20.81 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
paths.h
2.91 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
poll.h
22 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
printf.h
6.64 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
proc_service.h
3.39 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
protocols
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
pthread.h
40.3 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
pty.h
1.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
pwd.h
5.89 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
python3.6
-
07/15/2022 06:13:48 AM
rwxr-xr-x
📁
python3.6m
-
07/15/2022 06:13:48 AM
rwxr-xr-x
📁
rdma
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
re_comp.h
962 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
regex.h
21.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
regexp.h
1.41 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
reglib
-
10/14/2020 08:39:19 AM
rwxr-xr-x
📄
resolv.h
11.73 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
rpc
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📁
rpcsvc
-
03/02/2022 06:10:39 AM
rwxr-xr-x
📄
sched.h
4.62 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
scsi
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
search.h
5.1 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
semaphore.h
2.34 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
setjmp.h
3.58 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
sgtty.h
1.31 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
shadow.h
5.08 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
signal.h
11.96 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
sound
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
spawn.h
6.53 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stab.h
264 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdc-predef.h
2.31 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdint.h
8.42 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdio.h
28.97 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdio_ext.h
2.73 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stdlib.h
34.95 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
string.h
17.13 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
strings.h
4.64 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
stropts.h
2.98 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
sudo_plugin.h
7.89 KB
01/19/2021 02:36:00 PM
rw-r--r--
📄
syscall.h
25 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
sysexits.h
5.11 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
syslog.h
24 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
tar.h
3.7 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
termio.h
214 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
termios.h
3.51 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
tgmath.h
30.75 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
thread_db.h
15.65 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
time.h
10.12 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ttyent.h
2.44 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
uchar.h
2.26 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ucontext.h
1.89 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ulimit.h
1.55 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
unistd.h
41.78 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
ustat.h
23 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
utime.h
1.47 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
utmp.h
3.15 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
utmpx.h
4 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
values.h
1.91 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
video
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📄
wait.h
22 bytes
01/24/2022 12:53:44 PM
rw-r--r--
📄
wchar.h
30.38 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
wctype.h
5.42 KB
01/24/2022 12:53:44 PM
rw-r--r--
📄
wordexp.h
2.44 KB
01/24/2022 12:53:44 PM
rw-r--r--
📁
x86_64-linux-gnu
-
11/24/2022 06:55:49 AM
rwxr-xr-x
📁
xen
-
11/20/2022 06:45:48 AM
rwxr-xr-x
📁
xfs
-
04/18/2018 06:44:31 AM
rwxr-xr-x
Editing: cifsidmap.h
Close
/* * ID Mapping Plugin interface for cifs-utils * Copyright (C) 2012 Jeff Layton (jlayton@samba.org) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <stdint.h> #ifndef _CIFSIDMAP_H #define _CIFSIDMAP_H #define NUM_AUTHS (6) /* number of authority fields */ #define SID_MAX_SUB_AUTHORITIES (15) /* max number of sub authority fields */ /* * Binary representation of a SID as presented to/from the kernel. Note that * the sub_auth field is always stored in little-endian here. */ struct cifs_sid { uint8_t revision; /* revision level */ uint8_t num_subauth; uint8_t authority[NUM_AUTHS]; uint32_t sub_auth[SID_MAX_SUB_AUTHORITIES]; } __attribute__((packed)); /* * The type of the ID stored within cifs_uxid. UNKNOWN generally means that * the mapping failed for some reason. BOTH means that the ID is usable as * either a UID or a GID -- IOW, the UID and GID namespaces are unity-mapped. */ #define CIFS_UXID_TYPE_UNKNOWN (0) /* mapping type is unknown */ #define CIFS_UXID_TYPE_UID (1) /* mapping is a UID */ #define CIFS_UXID_TYPE_GID (2) /* mapping is a GID */ #define CIFS_UXID_TYPE_BOTH (3) /* usable as UID or GID */ /* This struct represents a uid or gid and its type */ struct cifs_uxid { union { uid_t uid; gid_t gid; } id; unsigned char type; } __attribute__((packed)); /* * Plugins should implement the following functions: */ /** * cifs_idmap_init_plugin - Initialize the plugin interface * @handle - return pointer for an opaque handle * @errmsg - pointer to error message pointer * * This function should do whatever is required to establish a context * for later ID mapping operations. The "handle" is an opaque context * cookie that will be passed in on subsequent ID mapping operations. * The errmsg is used to pass back an error string both during the init * and in subsequent idmapping functions. On any error, the plugin * should point *errmsg at a string describing that error. Returns 0 * on success and non-zero on error. */ extern int cifs_idmap_init_plugin(void **handle, const char **errmsg); /** * cifs_idmap_exit_plugin - Destroy an idmapping context * @handle - context handle that should be destroyed * * When programs are finished with the idmapping plugin, they'll call * this function to destroy any context that was created during the * init_plugin. The handle passed back in was the one given by the init * routine. */ extern void cifs_idmap_exit_plugin(void *handle); /** * cifs_idmap_sid_to_str - convert cifs_sid to a string * @handle - context handle * @sid - pointer to a cifs_sid * @name - return pointer for the name * * This function should convert the given cifs_sid to a string * representation or mapped name in a heap-allocated buffer. The caller * of this function is expected to free "name" on success. Returns 0 on * success and non-zero on error. On error, the errmsg pointer passed * in to the init_plugin function should point to an error string. The * caller will not free the error string. */ extern int cifs_idmap_sid_to_str(void *handle, const struct cifs_sid *sid, char **name); /** * cifs_idmap_str_to_sid - convert string to struct cifs_sid * @handle - context handle * @name - pointer to name string to be converted * @sid - pointer to struct cifs_sid where result should go * * This function converts a name string or string representation of * a SID to a struct cifs_sid. The cifs_sid should already be * allocated. Returns 0 on success and non-zero on error. On error, the * plugin should reset the errmsg pointer passed to the init_plugin * function to an error string. The caller will not free the error string. */ extern int cifs_idmap_str_to_sid(void *handle, const char *name, struct cifs_sid *sid); /** * cifs_idmap_sids_to_ids - convert struct cifs_sids to struct cifs_uxids * @handle - context handle * @sid - pointer to array of struct cifs_sids to be converted * @num - number of sids to be converted * @cuxid - pointer to preallocated array of struct cifs_uxids for return * * This function should map an array of struct cifs_sids to an array of * struct cifs_uxids. * * Returns 0 if at least one conversion was successful and non-zero on error. * Any that were not successfully converted will have a cuxid->type of * CIFS_UXID_TYPE_UNKNOWN. * * On any error, the plugin should reset the errmsg pointer passed to the * init_plugin function to an error string. The caller will not free the error * string. */ extern int cifs_idmap_sids_to_ids(void *handle, const struct cifs_sid *sid, const size_t num, struct cifs_uxid *cuxid); /** * cifs_idmap_ids_to_sids - convert uid to struct cifs_sid * @handle - context handle * @cuxid - pointer to array of struct cifs_uxid to be converted to SIDs * @num - number of cifs_uxids to be converted to SIDs * @sid - pointer to preallocated array of struct cifs_sid where results * should be stored * * This function should map an array of cifs_uxids an array of struct cifs_sids. * Returns 0 if at least one conversion was successful and non-zero on error. * Any sids that were not successfully converted should have their revision * number set to 0. * * On any error, the plugin should reset the errmsg pointer passed to the * init_plugin function to an error string. The caller will not free the error * string. */ extern int cifs_idmap_ids_to_sids(void *handle, const struct cifs_uxid *cuxid, const size_t num, struct cifs_sid *sid); #endif /* _CIFSIDMAP_H */