View | Details | Raw Unified | Return to bug 1851 | Differences between
and this patch

Collapse All | Expand All

(-)b/openbsd-compat/port-linux.c (-2 / +5 lines)
Lines 211-222 Link Here
211
{
211
{
212
		security_context_t context;
212
		security_context_t context;
213
213
214
		if (!ssh_selinux_enabled())
215
			return;
216
214
		if (path == NULL) {
217
		if (path == NULL) {
215
			setfscreatecon(NULL);
218
			setfscreatecon(NULL);
216
			return;
219
			return;
217
		}
220
		}
218
		matchpathcon(path, 0700, &context);
221
		if (matchpathcon(path, 0700, &context) == 0)
219
		setfscreatecon(context);
222
			setfscreatecon(context);
220
}
223
}
221
224
222
#endif /* WITH_SELINUX */
225
#endif /* WITH_SELINUX */

Return to bug 1851