Lines Matching refs:rc
11 int rc = 0; in setexecfilecon() local
16 rc = getcon(&mycon); in setexecfilecon()
17 if (rc < 0) in setexecfilecon()
20 rc = getfilecon(filename, &fcon); in setexecfilecon()
21 if (rc < 0) in setexecfilecon()
24 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &newcon); in setexecfilecon()
25 if (rc < 0) in setexecfilecon()
30 rc = -1; in setexecfilecon()
40 rc = 0; in setexecfilecon()
43 rc = setexeccon(newcon); in setexecfilecon()
44 if (rc < 0) in setexecfilecon()
48 if (rc < 0 && security_getenforce() == 0) in setexecfilecon()
49 rc = 0; in setexecfilecon()
55 return rc < 0 ? rc : 0; in setexecfilecon()
62 int rc; in rpm_execcon() local
64 rc = setexecfilecon(filename, "rpm_script_t"); in rpm_execcon()
65 if (rc < 0) in rpm_execcon()
66 return rc; in rpm_execcon()