|
Lines 60-66
ssh_selinux_enabled(void)
Link Here
|
| 60 |
static security_context_t |
60 |
static security_context_t |
| 61 |
ssh_selinux_getctxbyname(char *pwname) |
61 |
ssh_selinux_getctxbyname(char *pwname) |
| 62 |
{ |
62 |
{ |
| 63 |
security_context_t sc; |
63 |
security_context_t sc = NULL; |
| 64 |
char *sename = NULL, *lvl = NULL; |
64 |
char *sename = NULL, *lvl = NULL; |
| 65 |
int r; |
65 |
int r; |
| 66 |
|
66 |
|
|
Lines 86-91
ssh_selinux_getctxbyname(char *pwname)
Link Here
|
| 86 |
case 0: |
86 |
case 0: |
| 87 |
error("%s: Failed to get default SELinux security " |
87 |
error("%s: Failed to get default SELinux security " |
| 88 |
"context for %s", __func__, pwname); |
88 |
"context for %s", __func__, pwname); |
|
|
89 |
sc = NULL; |
| 89 |
break; |
90 |
break; |
| 90 |
default: |
91 |
default: |
| 91 |
fatal("%s: Failed to get default SELinux security " |
92 |
fatal("%s: Failed to get default SELinux security " |
|
Lines 101-107
ssh_selinux_getctxbyname(char *pwname)
Link Here
|
| 101 |
xfree(lvl); |
102 |
xfree(lvl); |
| 102 |
#endif |
103 |
#endif |
| 103 |
|
104 |
|
| 104 |
return (sc); |
105 |
return sc; |
| 105 |
} |
106 |
} |
| 106 |
|
107 |
|
| 107 |
/* Set the execution context to the default for the specified user */ |
108 |
/* Set the execution context to the default for the specified user */ |