* lib/protoypes.h, libmisc/copydir.c, src/useradd.c:

selinux_file_context renamed set_selinux_file_context.
	* lib/protoypes.h, libmisc/copydir.c, src/useradd.c:
	Added reset_selinux_file_context.
	* src/useradd.c: Check the return value of
	set_selinux_file_context and reset_selinux_file_context.
	* libmisc/copydir.c: Check the return value of
	reset_selinux_file_context.
This commit is contained in:
nekral-guest
2010-08-28 19:58:00 +00:00
parent 991ce97170
commit 1d336d3a1e
4 changed files with 63 additions and 18 deletions

View File

@ -123,7 +123,8 @@ extern int copy_tree (const char *src_root, const char *dst_root,
uid_t old_uid, uid_t new_uid,
gid_t old_gid, gid_t new_gid);
#ifdef WITH_SELINUX
extern int selinux_file_context (const char *dst_name);
extern int set_selinux_file_context (const char *dst_name);
extern int reset_selinux_file_context (void);
#endif
/* encrypt.c */