Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
Delete
Unzip
Name
Size
Permission
Date
Action
arpa
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
asm-generic
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
btrfs
[ DIR ]
drwxr-xr-x
2019-09-03 13:14
c++
[ DIR ]
drwxr-xr-x
2017-10-05 13:54
drm
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
linux
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
misc
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
mtd
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
net
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netash
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netatalk
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netax25
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
neteconet
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netinet
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netipx
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netiucv
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netpacket
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netrom
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
netrose
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
nfs
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
openvpn
[ DIR ]
drwxr-xr-x
2019-09-03 13:14
php
[ DIR ]
drwxr-xr-x
2021-02-25 12:36
protocols
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
rdma
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
reglib
[ DIR ]
drwxr-xr-x
2016-11-15 23:07
rpc
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
rpcsvc
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
scsi
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
sound
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
uapi
[ DIR ]
drwxr-xr-x
2017-09-12 19:55
video
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
x86_64-linux-gnu
[ DIR ]
drwxr-xr-x
2021-05-15 07:08
xen
[ DIR ]
drwxr-xr-x
2021-04-21 07:31
xfs
[ DIR ]
drwxr-xr-x
2016-02-16 14:18
_G_config.h
1.26
KB
-rw-r--r--
2021-04-21 20:11
aio.h
7.27
KB
-rw-r--r--
2021-04-21 20:11
aliases.h
1.98
KB
-rw-r--r--
2021-04-21 20:11
alloca.h
1.17
KB
-rw-r--r--
2021-04-21 20:11
ar.h
1.69
KB
-rw-r--r--
2021-04-21 20:11
argp.h
24.71
KB
-rw-r--r--
2021-04-21 20:11
argz.h
6.95
KB
-rw-r--r--
2021-04-21 20:11
assert.h
3.5
KB
-rw-r--r--
2021-04-21 20:11
byteswap.h
1.37
KB
-rw-r--r--
2021-04-21 20:11
cifsidmap.h
6
KB
-rw-r--r--
2017-03-06 14:02
complex.h
3.56
KB
-rw-r--r--
2021-04-21 20:11
cpio.h
2.21
KB
-rw-r--r--
2021-04-21 20:11
crypt.h
2.21
KB
-rw-r--r--
2021-04-21 20:11
ctype.h
11.38
KB
-rw-r--r--
2021-04-21 20:11
dirent.h
12.12
KB
-rw-r--r--
2021-04-21 20:11
dlfcn.h
6.85
KB
-rw-r--r--
2021-04-21 20:11
elf.h
154.74
KB
-rw-r--r--
2021-04-21 20:11
endian.h
2.87
KB
-rw-r--r--
2021-04-21 20:11
envz.h
2.8
KB
-rw-r--r--
2021-04-21 20:11
err.h
2.16
KB
-rw-r--r--
2021-04-21 20:11
errno.h
2.31
KB
-rw-r--r--
2021-04-21 20:11
error.h
1.99
KB
-rw-r--r--
2021-04-21 20:11
execinfo.h
1.49
KB
-rw-r--r--
2021-04-21 20:11
fcntl.h
9.22
KB
-rw-r--r--
2021-04-21 20:11
features.h
12.9
KB
-rw-r--r--
2021-04-21 20:11
fenv.h
4.5
KB
-rw-r--r--
2021-04-21 20:11
fmtmsg.h
3.16
KB
-rw-r--r--
2021-04-21 20:11
fnmatch.h
2.24
KB
-rw-r--r--
2021-04-21 20:11
fstab.h
3.04
KB
-rw-r--r--
2021-04-21 20:11
fts.h
8.12
KB
-rw-r--r--
2021-04-21 20:11
ftw.h
5.13
KB
-rw-r--r--
2021-04-21 20:11
gawkapi.h
30.2
KB
-rw-r--r--
2015-12-24 00:11
gconv.h
4.31
KB
-rw-r--r--
2021-04-21 20:11
getopt.h
6.49
KB
-rw-r--r--
2021-04-21 20:11
glob.h
6.45
KB
-rw-r--r--
2021-04-21 20:11
gnu-versions.h
2.29
KB
-rw-r--r--
2021-04-21 20:11
gnumake.h
2.84
KB
-rw-r--r--
2016-02-15 12:13
grp.h
6.54
KB
-rw-r--r--
2021-04-21 20:11
gshadow.h
4.43
KB
-rw-r--r--
2021-04-21 20:11
iconv.h
1.81
KB
-rw-r--r--
2021-04-21 20:11
ifaddrs.h
2.77
KB
-rw-r--r--
2021-04-21 20:11
inttypes.h
11.61
KB
-rw-r--r--
2021-04-21 20:11
langinfo.h
15.55
KB
-rw-r--r--
2021-04-21 20:11
lastlog.h
126
B
-rw-r--r--
2021-04-21 20:11
libgen.h
1.35
KB
-rw-r--r--
2021-04-21 20:11
libintl.h
4.47
KB
-rw-r--r--
2021-04-21 20:11
libio.h
16.78
KB
-rw-r--r--
2021-04-21 20:11
limits.h
4.38
KB
-rw-r--r--
2021-04-21 20:11
link.h
7.04
KB
-rw-r--r--
2021-04-21 20:11
locale.h
7.75
KB
-rw-r--r--
2021-04-21 20:11
malloc.h
6.09
KB
-rw-r--r--
2021-04-21 20:11
math.h
17.94
KB
-rw-r--r--
2021-04-21 20:11
mcheck.h
2.38
KB
-rw-r--r--
2021-04-21 20:11
memory.h
955
B
-rw-r--r--
2021-04-21 20:11
mntent.h
3.29
KB
-rw-r--r--
2021-04-21 20:11
monetary.h
1.69
KB
-rw-r--r--
2021-04-21 20:11
mqueue.h
3.69
KB
-rw-r--r--
2021-04-21 20:11
netdb.h
27.4
KB
-rw-r--r--
2021-04-21 20:11
nl_types.h
1.71
KB
-rw-r--r--
2021-04-21 20:11
nss.h
1.83
KB
-rw-r--r--
2021-04-21 20:11
obstack.h
20.81
KB
-rw-r--r--
2021-04-21 20:11
paths.h
2.91
KB
-rw-r--r--
2021-04-21 20:11
poll.h
22
B
-rw-r--r--
2021-04-21 20:11
printf.h
6.54
KB
-rw-r--r--
2021-04-21 20:11
pthread.h
40.26
KB
-rw-r--r--
2021-04-21 20:11
pty.h
1.53
KB
-rw-r--r--
2021-04-21 20:11
pwd.h
5.9
KB
-rw-r--r--
2021-04-21 20:11
re_comp.h
962
B
-rw-r--r--
2021-04-21 20:11
regex.h
21.53
KB
-rw-r--r--
2021-04-21 20:11
regexp.h
1.41
KB
-rw-r--r--
2021-04-21 20:11
resolv.h
14.51
KB
-rw-r--r--
2021-04-21 20:11
sched.h
4.55
KB
-rw-r--r--
2021-04-21 20:11
search.h
5.1
KB
-rw-r--r--
2021-04-21 20:11
semaphore.h
2.35
KB
-rw-r--r--
2021-04-21 20:11
setjmp.h
3.69
KB
-rw-r--r--
2021-04-21 20:11
sgtty.h
1.31
KB
-rw-r--r--
2021-04-21 20:11
shadow.h
5.08
KB
-rw-r--r--
2021-04-21 20:11
signal.h
11.93
KB
-rw-r--r--
2021-04-21 20:11
spawn.h
6.51
KB
-rw-r--r--
2021-04-21 20:11
stab.h
264
B
-rw-r--r--
2021-04-21 20:11
stdc-predef.h
2.18
KB
-rw-r--r--
2021-04-21 20:11
stdint.h
7.9
KB
-rw-r--r--
2021-04-21 20:11
stdio.h
30.63
KB
-rw-r--r--
2021-04-21 20:11
stdio_ext.h
2.73
KB
-rw-r--r--
2021-04-21 20:11
stdlib.h
32.9
KB
-rw-r--r--
2021-04-21 20:11
string.h
22.13
KB
-rw-r--r--
2021-04-21 20:11
strings.h
4.51
KB
-rw-r--r--
2021-04-21 20:11
stropts.h
2.98
KB
-rw-r--r--
2021-04-21 20:11
sudo_plugin.h
7.83
KB
-rw-r--r--
2021-01-20 18:08
syscall.h
25
B
-rw-r--r--
2021-04-21 20:11
sysexits.h
5.11
KB
-rw-r--r--
2021-04-21 20:11
syslog.h
24
B
-rw-r--r--
2021-04-21 20:11
tar.h
3.7
KB
-rw-r--r--
2021-04-21 20:11
termio.h
214
B
-rw-r--r--
2021-04-21 20:11
termios.h
3.5
KB
-rw-r--r--
2021-04-21 20:11
tgmath.h
18.03
KB
-rw-r--r--
2021-04-21 20:11
thread_db.h
15.64
KB
-rw-r--r--
2021-04-21 20:11
time.h
13.23
KB
-rw-r--r--
2021-04-21 20:11
ttyent.h
2.44
KB
-rw-r--r--
2021-04-21 20:11
uchar.h
2.42
KB
-rw-r--r--
2021-04-21 20:11
ucontext.h
1.89
KB
-rw-r--r--
2021-04-21 20:11
ulimit.h
1.55
KB
-rw-r--r--
2021-04-21 20:11
unistd.h
41.11
KB
-rw-r--r--
2021-04-21 20:11
ustat.h
23
B
-rw-r--r--
2021-04-21 20:11
utime.h
1.48
KB
-rw-r--r--
2021-04-21 20:11
utmp.h
3.15
KB
-rw-r--r--
2021-04-21 20:11
utmpx.h
4
KB
-rw-r--r--
2021-04-21 20:11
values.h
1.91
KB
-rw-r--r--
2021-04-21 20:11
wait.h
22
B
-rw-r--r--
2021-04-21 20:11
wchar.h
31.37
KB
-rw-r--r--
2021-04-21 20:11
wctype.h
10.87
KB
-rw-r--r--
2021-04-21 20:11
wordexp.h
2.44
KB
-rw-r--r--
2021-04-21 20:11
xlocale.h
1.65
KB
-rw-r--r--
2021-04-21 20:11
Save
Rename
/* * 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 */