OSDN Git Service
(root)
/
android-x86
/
external-busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e261bba
)
login: fix buglet introduced by "simplification"
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 24 Feb 2009 17:10:24 +0000
(17:10 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 24 Feb 2009 17:10:24 +0000
(17:10 -0000)
loginutils/login.c
patch
|
blob
|
history
diff --git
a/loginutils/login.c
b/loginutils/login.c
index
cdc38fb
..
85bb737
100644
(file)
--- 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);
}