Bugzilla – Attachment 1800 Details for
Bug 1726
ChrootDirectory doesn't work with SE Linux
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
call ssh_selinux_setup_exec_context before chrooting
selinux-fix-chroot-directory.patch (text/plain), 676 bytes, created by
Colin Watson
on 2010-03-02 01:00:00 AEDT
(
hide
)
Description:
call ssh_selinux_setup_exec_context before chrooting
Filename:
MIME Type:
Creator:
Colin Watson
Created:
2010-03-02 01:00:00 AEDT
Size:
676 bytes
patch
obsolete
>Index: b/session.c >=================================================================== >--- a/session.c >+++ b/session.c >@@ -1522,6 +1522,10 @@ > # endif /* USE_LIBIAF */ > #endif > >+#ifdef WITH_SELINUX >+ ssh_selinux_setup_exec_context(pw->pw_name); >+#endif >+ > if (options.chroot_directory != NULL && > strcasecmp(options.chroot_directory, "none") != 0) { > tmp = tilde_expand_filename(options.chroot_directory, >@@ -1550,10 +1554,6 @@ > > if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) > fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); >- >-#ifdef WITH_SELINUX >- ssh_selinux_setup_exec_context(pw->pw_name); >-#endif > } > > static void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1726
: 1800