login: fix buglet introduced by "simplification"
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 24 Feb 2009 17:10:24 +0000 (17:10 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 24 Feb 2009 17:10:24 +0000 (17:10 -0000)
loginutils/login.c

index cdc38fbaf08dbe67fc0fd0fcd614921d8245b5dc..85bb737a6585e81194ec30056b133e7d4ff2e030 100644 (file)
@@ -180,7 +180,7 @@ static void initselinux(char *username, char *full_tty,
        if (getfilecon(full_tty, &old_tty_sid) < 0) {
                bb_perror_msg_and_die("getfilecon(%s) failed", full_tty);
        }
-       if (security_compute_relabel(user_sid, old_tty_sid,
+       if (security_compute_relabel(*user_sid, old_tty_sid,
                                SECCLASS_CHR_FILE, &new_tty_sid) != 0) {
                bb_perror_msg_and_die("security_change_sid(%s) failed", full_tty);
        }