projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fadcdb4
)
Always initialize scontext and scontext_len
author
Stephen Smalley
<sds@tycho.nsa.gov>
Mon, 26 Feb 2007 17:02:34 +0000
(12:02 -0500)
committer
James Morris
<jmorris@namei.org>
Mon, 26 Feb 2007 19:43:15 +0000
(14:43 -0500)
Always initialize *scontext and *scontext_len in security_sid_to_context.
(via http://lkml.org/lkml/2007/2/23/135)
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/ss/services.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/ss/services.c
b/security/selinux/ss/services.c
index ca9154dc5d825bea7f680de2f42b0979e4a930a6..1e52356664d6866ed2b24ad753088b8349a167ba 100644
(file)
--- a/
security/selinux/ss/services.c
+++ b/
security/selinux/ss/services.c
@@
-609,6
+609,9
@@
int security_sid_to_context(u32 sid, char **scontext, u32 *scontext_len)
struct context *context;
int rc = 0;
+ *scontext = NULL;
+ *scontext_len = 0;
+
if (!ss_initialized) {
if (sid <= SECINITSID_NUM) {
char *scontextp;