Home
last modified time | relevance | path

Searched refs:rcontext (Results 1 – 8 of 8) sorted by relevance

/third_party/selinux/libselinux/src/
Dlsetfilecon.c32 char * rcontext; in lsetfilecon() local
34 if (selinux_trans_to_raw_context(context, &rcontext)) in lsetfilecon()
37 ret = lsetfilecon_raw(path, rcontext); in lsetfilecon()
39 freecon(rcontext); in lsetfilecon()
Dsetfilecon.c32 char * rcontext; in setfilecon() local
34 if (selinux_trans_to_raw_context(context, &rcontext)) in setfilecon()
37 ret = setfilecon_raw(path, rcontext); in setfilecon()
39 freecon(rcontext); in setfilecon()
Dprocattr.c201 char * rcontext; in getprocattrcon() local
203 ret = getprocattrcon_raw(&rcontext, pid, attr); in getprocattrcon()
206 ret = selinux_raw_to_trans_context(rcontext, context); in getprocattrcon()
207 freecon(rcontext); in getprocattrcon()
286 char * rcontext; in setprocattrcon() local
288 if (selinux_trans_to_raw_context(context, &rcontext)) in setprocattrcon()
291 ret = setprocattrcon_raw(rcontext, pid, attr); in setprocattrcon()
293 freecon(rcontext); in setprocattrcon()
Dgetpeercon.c50 char * rcontext; in getpeercon() local
52 ret = getpeercon_raw(fd, &rcontext); in getpeercon()
55 ret = selinux_raw_to_trans_context(rcontext, context); in getpeercon()
56 freecon(rcontext); in getpeercon()
Dlgetfilecon.c56 char * rcontext = NULL; in lgetfilecon() local
60 ret = lgetfilecon_raw(path, &rcontext); in lgetfilecon()
63 ret = selinux_raw_to_trans_context(rcontext, context); in lgetfilecon()
64 freecon(rcontext); in lgetfilecon()
Dgetfilecon.c56 char * rcontext = NULL; in getfilecon() local
60 ret = getfilecon_raw(path, &rcontext); in getfilecon()
63 ret = selinux_raw_to_trans_context(rcontext, context); in getfilecon()
64 freecon(rcontext); in getfilecon()
Dfsetfilecon.c56 char * rcontext; in fsetfilecon() local
58 if (selinux_trans_to_raw_context(context, &rcontext)) in fsetfilecon()
61 ret = fsetfilecon_raw(fd, rcontext); in fsetfilecon()
63 freecon(rcontext); in fsetfilecon()
Dfgetfilecon.c80 char * rcontext = NULL; in fgetfilecon() local
85 ret = fgetfilecon_raw(fd, &rcontext); in fgetfilecon()
88 ret = selinux_raw_to_trans_context(rcontext, context); in fgetfilecon()
89 freecon(rcontext); in fgetfilecon()