diff options
| author | Stephen Smalley <sds@tycho.nsa.gov> | 2014-02-07 09:14:13 -0500 |
|---|---|---|
| committer | Stephen Smalley <sds@tycho.nsa.gov> | 2014-02-07 09:38:32 -0500 |
| commit | 27a93650c0df02e4cd3c48bbec8acee8b817a012 (patch) | |
| tree | 5e44f37904161863c288b4c4734d7dabd3b3b94c /adb | |
| parent | 71de56a08cac3353334c2253748fdf8c37ec4aa1 (diff) | |
| download | system_core-27a93650c0df02e4cd3c48bbec8acee8b817a012.zip system_core-27a93650c0df02e4cd3c48bbec8acee8b817a012.tar.gz system_core-27a93650c0df02e4cd3c48bbec8acee8b817a012.tar.bz2 | |
Convert all selinux_android_restorecon and _setfilecon calls to new API.
libselinux selinux_android_restorecon API is changing to the more
general interface with flags and dropping the older variants.
Also get rid of the old, no longer used selinux_android_setfilecon API
and rename selinux_android_setfilecon2 to it as it is the only API in use.
Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'adb')
| -rw-r--r-- | adb/file_sync_service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/file_sync_service.c b/adb/file_sync_service.c index 577fb8f..e981c2a 100644 --- a/adb/file_sync_service.c +++ b/adb/file_sync_service.c @@ -68,7 +68,7 @@ static int mkdirs(char *name) *x = '/'; return ret; } - selinux_android_restorecon(name); + selinux_android_restorecon(name, 0); } *x++ = '/'; } @@ -246,7 +246,7 @@ static int handle_send_file(int s, char *path, uid_t uid, if(fd >= 0) { struct utimbuf u; adb_close(fd); - selinux_android_restorecon(path); + selinux_android_restorecon(path, 0); u.actime = timestamp; u.modtime = timestamp; utime(path, &u); |
