framework/security/smack.git
13 years agosmack_add_user()
Jarkko Sakkinen [Mon, 15 Nov 2010 19:08:48 +0000 (11:08 -0800)]
smack_add_user()

13 years agoImplemented smack_get_user_label(). Fixed bug in internal function
Jarkko Sakkinen [Mon, 15 Nov 2010 18:58:20 +0000 (10:58 -0800)]
Implemented smack_get_user_label(). Fixed bug in internal function
update_user(). Now HASH_ADD_KEYPTR is correctly used instead of
HASH_ADD_STRING() since user name string is dynamically allocated.

13 years agoDivided implementation into three files: smack_rules.c, smack_users.c
Jarkko Sakkinen [Mon, 15 Nov 2010 16:02:52 +0000 (08:02 -0800)]
Divided implementation into three files: smack_rules.c, smack_users.c
and smack_xattr.c

13 years agoSeparated tests into three suites.
Jarkko Sakkinen [Mon, 15 Nov 2010 15:56:19 +0000 (07:56 -0800)]
Separated tests into three suites.

13 years agosmack_set_smackexec_to_file()
Jarkko Sakkinen [Mon, 15 Nov 2010 15:45:22 +0000 (07:45 -0800)]
smack_set_smackexec_to_file()

13 years agoFixed compiler warnings.
Jarkko Sakkinen [Mon, 15 Nov 2010 15:29:35 +0000 (07:29 -0800)]
Fixed compiler warnings.

13 years agoAdded missing includes.
Jarkko Sakkinen [Mon, 15 Nov 2010 15:28:01 +0000 (07:28 -0800)]
Added missing includes.

13 years agoCleaned up code. Made reading rules and users more atomic.
Jarkko Sakkinen [Mon, 15 Nov 2010 14:16:45 +0000 (06:16 -0800)]
Cleaned up code. Made reading rules and users more atomic.

13 years agoRead and write users db from file.
Jarkko Sakkinen [Mon, 15 Nov 2010 01:43:12 +0000 (17:43 -0800)]
Read and write users db from file.

13 years agoAdded flags parameter to smack_set_file_smack() and
Jarkko Sakkinen [Sat, 13 Nov 2010 16:20:08 +0000 (08:20 -0800)]
Added flags parameter to smack_set_file_smack() and
smack_get_file_smack().

13 years agosmack_set_proc_smack()
Jarkko Sakkinen [Sat, 13 Nov 2010 05:10:38 +0000 (21:10 -0800)]
smack_set_proc_smack()

13 years agoFine-tuned test cases.
Jarkko Sakkinen [Sat, 13 Nov 2010 00:30:25 +0000 (16:30 -0800)]
Fine-tuned test cases.

13 years agoAdded format parameter to the smack_write_rules() that allows to
Jarkko Sakkinen [Sat, 13 Nov 2010 00:24:18 +0000 (16:24 -0800)]
Added format parameter to the smack_write_rules() that allows to
select whether rules are written in format accepted by smackfs or
in format that is used in smack accesses files.

13 years agoCode cleanup.
Jarkko Sakkinen [Fri, 12 Nov 2010 18:36:53 +0000 (10:36 -0800)]
Code cleanup.

13 years agoInitial commit
Jarkko Sakkinen [Fri, 12 Nov 2010 01:47:14 +0000 (17:47 -0800)]
Initial commit