From: Denis Vlasenko Date: Tue, 24 Feb 2009 17:10:24 +0000 (-0000) Subject: login: fix buglet introduced by "simplification" X-Git-Tag: 1_14_0~305 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8e5de2aab7421677fd92a5f24da3d2a99dacf9f1;p=oweals%2Fbusybox.git login: fix buglet introduced by "simplification" --- diff --git a/loginutils/login.c b/loginutils/login.c index cdc38fbaf..85bb737a6 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -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); }