Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
system_core
Commits
8a387870
Commit
8a387870
authored
12 years ago
by
repo sync
Browse files
Options
Download
Email Patches
Plain Diff
Revert "Reload policy after setting up the data partition."
This reverts commit
fee250d2
.
parent
3d32cd93
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
13 deletions
+3
-13
init/builtins.c
init/builtins.c
+0
-6
init/init_parser.c
init/init_parser.c
+0
-1
init/keywords.h
init/keywords.h
+0
-2
init/property_service.c
init/property_service.c
+3
-0
rootdir/init.rc
rootdir/init.rc
+0
-4
No files found.
init/builtins.c
View file @
8a387870
...
...
@@ -515,12 +515,6 @@ int do_mount_all(int nargs, char **args)
return
ret
;
}
int
do_selinux_reload
(
int
nargs
,
char
**
args
)
{
if
(
is_selinux_enabled
()
<=
0
)
return
0
;
return
selinux_reload_policy
();
}
int
do_setcon
(
int
nargs
,
char
**
args
)
{
if
(
is_selinux_enabled
()
<=
0
)
return
0
;
...
...
This diff is collapsed.
Click to expand it.
init/init_parser.c
View file @
8a387870
...
...
@@ -138,7 +138,6 @@ int lookup_keyword(const char *s)
break
;
case
's'
:
if
(
!
strcmp
(
s
,
"eclabel"
))
return
K_seclabel
;
if
(
!
strcmp
(
s
,
"elinux_reload_policy"
))
return
K_selinux_reload_policy
;
if
(
!
strcmp
(
s
,
"ervice"
))
return
K_service
;
if
(
!
strcmp
(
s
,
"etcon"
))
return
K_setcon
;
if
(
!
strcmp
(
s
,
"etenforce"
))
return
K_setenforce
;
...
...
This diff is collapsed.
Click to expand it.
init/keywords.h
View file @
8a387870
...
...
@@ -18,7 +18,6 @@ int do_restart(int nargs, char **args);
int
do_restorecon
(
int
nargs
,
char
**
args
);
int
do_rm
(
int
nargs
,
char
**
args
);
int
do_rmdir
(
int
nargs
,
char
**
args
);
int
do_selinux_reload
(
int
nargs
,
char
**
args
);
int
do_setcon
(
int
nargs
,
char
**
args
);
int
do_setenforce
(
int
nargs
,
char
**
args
);
int
do_setkey
(
int
nargs
,
char
**
args
);
...
...
@@ -72,7 +71,6 @@ enum {
KEYWORD
(
rm
,
COMMAND
,
1
,
do_rm
)
KEYWORD
(
rmdir
,
COMMAND
,
1
,
do_rmdir
)
KEYWORD
(
seclabel
,
OPTION
,
0
,
0
)
KEYWORD
(
selinux_reload_policy
,
COMMAND
,
0
,
do_selinux_reload
)
KEYWORD
(
service
,
SECTION
,
0
,
0
)
KEYWORD
(
setcon
,
COMMAND
,
1
,
do_setcon
)
KEYWORD
(
setenforce
,
COMMAND
,
1
,
do_setenforce
)
...
...
This diff is collapsed.
Click to expand it.
init/property_service.c
View file @
8a387870
...
...
@@ -384,6 +384,9 @@ int property_set(const char *name, const char *value)
* to prevent them from being overwritten by default values.
*/
write_persistent_property
(
name
,
value
);
}
else
if
(
strcmp
(
"selinux.reload_policy"
,
name
)
==
0
&&
strcmp
(
"1"
,
value
)
==
0
)
{
selinux_reload_policy
();
}
property_changed
(
name
,
value
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
rootdir/init.rc
View file @
8a387870
...
...
@@ -177,9 +177,6 @@ on post-fs
mkdir /cache/lost+found 0770 root root
on post-fs-data
# reload SELinux based on what we find on the data partition
selinux_reload_policy
# We chown/chmod /data again so because mount is run as root + defaults
chown system system /data
chmod 0771 /data
...
...
@@ -413,7 +410,6 @@ service ueventd /sbin/ueventd
seclabel u:r:ueventd:s0
on property:selinux.reload_policy=1
selinux_reload_policy
restart ueventd
restart installd
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment