Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 746227 | Differences between
and this patch

Collapse All | Expand All

(-)a/unix/vncserver/tigervnc.pam (-2 / +2 lines)
Lines 1-8 Link Here
1
#%PAM-1.0
1
#%PAM-1.0
2
# pam_selinux.so close should be the first session rule
2
# pam_selinux.so close should be the first session rule
3
-session   required     pam_selinux.so close
3
-session   optional     pam_selinux.so close
4
session    required     pam_loginuid.so
4
session    required     pam_loginuid.so
5
-session   required     pam_selinux.so open
5
-session   optional     pam_selinux.so open
6
session    required     pam_namespace.so
6
session    required     pam_namespace.so
7
session    optional     pam_keyinit.so force revoke
7
session    optional     pam_keyinit.so force revoke
8
session    required     pam_limits.so
8
session    required     pam_limits.so
(-)a/unix/vncserver/vncserver.in (-11 / +1 lines)
Lines 233-239 Link Here
233
233
234
@cmd = ("xinit");
234
@cmd = ("xinit");
235
235
236
push(@cmd, $Xsession, $session{'Exec'});
236
push(@cmd, $session{'Exec'});
237
237
238
push(@cmd, '--');
238
push(@cmd, '--');
239
239
Lines 438-453 Link Here
438
	die "$prog: couldn't find \"$cmd\" on your PATH.\n";
438
	die "$prog: couldn't find \"$cmd\" on your PATH.\n";
439
    }
439
    }
440
440
441
    foreach $cmd ("/etc/X11/xinit/Xsession", "/etc/X11/Xsession") {
442
        if (-x "$cmd") {
443
            $Xsession = $cmd;
444
            last;
445
        }
446
    }
447
    if (not defined $Xsession) {
448
        die "$prog: Couldn't find suitable Xsession.\n";
449
    }
450
451
    if (!defined($ENV{HOME})) {
441
    if (!defined($ENV{HOME})) {
452
	die "$prog: The HOME environment variable is not set.\n";
442
	die "$prog: The HOME environment variable is not set.\n";
453
    }
443
    }

Return to bug 746227