framework/security/smack.git
12 years agoremoved README
Jarkko Sakkinen [Wed, 9 Nov 2011 19:14:26 +0000 (21:14 +0200)]
removed README

12 years agosmackctl: cleaned up cipso_apply()
Jarkko Sakkinen [Tue, 8 Nov 2011 21:17:08 +0000 (23:17 +0200)]
smackctl: cleaned up cipso_apply()

12 years agosmackctl: cipso support
Jarkko Sakkinen [Thu, 3 Nov 2011 16:42:23 +0000 (18:42 +0200)]
smackctl: cipso support

12 years agosmackctl: cleaned up constants
Jarkko Sakkinen [Fri, 4 Nov 2011 11:29:35 +0000 (13:29 +0200)]
smackctl: cleaned up constants

12 years agosmackctl: removed deprecated vars from apply()
Jarkko Sakkinen [Fri, 4 Nov 2011 11:24:41 +0000 (13:24 +0200)]
smackctl: removed deprecated vars from apply()

12 years agosmackctl: replaced opendir etc mess with nftw call.
Jarkko Sakkinen [Fri, 4 Nov 2011 08:21:30 +0000 (10:21 +0200)]
smackctl: replaced opendir etc mess with nftw call.

12 years agofix: close(fd) was missing from smack_rule_set_apply().
Jarkko Sakkinen [Thu, 3 Nov 2011 17:25:51 +0000 (19:25 +0200)]
fix: close(fd) was missing from smack_rule_set_apply().

12 years agosmackself: fixed invalid return value on failure and made it more
Jarkko Sakkinen [Wed, 2 Nov 2011 21:24:49 +0000 (23:24 +0200)]
smackself: fixed invalid return value on failure and made it more
scriptable.

12 years agotests: renamed smackselflabel to smackself
Jarkko Sakkinen [Wed, 2 Nov 2011 21:14:44 +0000 (23:14 +0200)]
tests: renamed smackselflabel to smackself

12 years agoReorganized and cleaned up smack.h/c.
Jarkko Sakkinen [Wed, 2 Nov 2011 21:11:32 +0000 (23:11 +0200)]
Reorganized and cleaned up smack.h/c.

12 years agoAdd get_self_label functionality
Brian McGillion [Wed, 2 Nov 2011 14:52:08 +0000 (16:52 +0200)]
Add get_self_label functionality

12 years agoRemove the defunct autogen script.
Brian McGillion [Mon, 31 Oct 2011 14:12:02 +0000 (16:12 +0200)]
Remove the defunct autogen script.

12 years agosmackctl: applying rules from /etc/smack/accesses.d
Jarkko Sakkinen [Thu, 20 Oct 2011 08:47:35 +0000 (11:47 +0300)]
smackctl: applying rules from /etc/smack/accesses.d

12 years agosmackctl: code cleanup
Jarkko Sakkinen [Thu, 20 Oct 2011 10:31:27 +0000 (13:31 +0300)]
smackctl: code cleanup

12 years agofixed stat check of accesses file
Jarkko Sakkinen [Thu, 20 Oct 2011 10:18:51 +0000 (13:18 +0300)]
fixed stat check of accesses file

12 years agosmackctl: fix: strncmp to strcmp in restart check
Jarkko Sakkinen [Thu, 20 Oct 2011 08:48:28 +0000 (11:48 +0300)]
smackctl: fix: strncmp to strcmp in restart check

12 years agosmackctl: check for /etc/smack/accesses existence
Jarkko Sakkinen [Thu, 20 Oct 2011 08:21:49 +0000 (11:21 +0300)]
smackctl: check for /etc/smack/accesses existence

12 years agoUpdate libsmack.pc.in to reflect the new path used for include path.
Brian McGillion [Tue, 18 Oct 2011 15:03:50 +0000 (18:03 +0300)]
Update libsmack.pc.in to reflect the new path used for include path.

12 years agoFixed invalid return value in smack_rule_set_save(). Used
Jarkko Sakkinen [Thu, 13 Oct 2011 10:30:53 +0000 (13:30 +0300)]
Fixed invalid return value in smack_rule_set_save(). Used
mistakenly return value of fprintf().

12 years agolibsmack: noinst_PROGRAMS for tests/*
Jarkko Sakkinen [Tue, 11 Oct 2011 11:13:13 +0000 (14:13 +0300)]
libsmack: noinst_PROGRAMS for tests/*

12 years agolibsmack: fixed smack_access.
Jarkko Sakkinen [Mon, 10 Oct 2011 11:19:27 +0000 (14:19 +0300)]
libsmack: fixed smack_access.

12 years agosmackctl: check that smackfs is mounted also in stop.
Jarkko Sakkinen [Sun, 9 Oct 2011 07:20:02 +0000 (10:20 +0300)]
smackctl: check that smackfs is mounted also in stop.

12 years agosmackctl: fixes
Jarkko Sakkinen [Sat, 8 Oct 2011 20:38:29 +0000 (23:38 +0300)]
smackctl: fixes

12 years agosmackctl: fixed status argument check
Jarkko Sakkinen [Sat, 8 Oct 2011 20:12:04 +0000 (23:12 +0300)]
smackctl: fixed status argument check

12 years agosmackctl: start/stop guards
Jarkko Sakkinen [Sat, 8 Oct 2011 19:29:30 +0000 (22:29 +0300)]
smackctl: start/stop guards

12 years agoRemoved printload test. Renamed access test as smackaccess.
Jarkko Sakkinen [Sat, 8 Oct 2011 19:20:52 +0000 (22:20 +0300)]
Removed printload test. Renamed access test as smackaccess.

12 years agosmackctl: status
Jarkko Sakkinen [Sat, 8 Oct 2011 19:17:05 +0000 (22:17 +0300)]
smackctl: status

12 years agosmackctl: status
Jarkko Sakkinen [Sat, 8 Oct 2011 18:43:11 +0000 (21:43 +0300)]
smackctl: status

12 years agosmackctl: initial restart
Jarkko Sakkinen [Sat, 8 Oct 2011 18:18:39 +0000 (21:18 +0300)]
smackctl: initial restart

Implemented initial restart functionality to smackctl.

12 years agosmackctl: initial stop
Jarkko Sakkinen [Sat, 8 Oct 2011 17:02:59 +0000 (20:02 +0300)]
smackctl: initial stop

Implemented initial stop functionality to smackctl.

12 years agoNew test smackctl. Beginnings of a startup script replacement.
Jarkko Sakkinen [Sat, 8 Oct 2011 15:12:17 +0000 (18:12 +0300)]
New test smackctl. Beginnings of a startup script replacement.

12 years agoAPI cleanup.
Jarkko Sakkinen [Fri, 7 Oct 2011 20:58:05 +0000 (23:58 +0300)]
API cleanup.

12 years agoFixed access_type_to_int()
Jarkko Sakkinen [Wed, 5 Oct 2011 12:00:12 +0000 (15:00 +0300)]
Fixed access_type_to_int()

12 years agoCode cleanup.
Jarkko Sakkinen [Wed, 5 Oct 2011 10:52:33 +0000 (13:52 +0300)]
Code cleanup.

12 years agoFixed line format for /smack/load.
Jarkko Sakkinen [Wed, 5 Oct 2011 09:05:12 +0000 (12:05 +0300)]
Fixed line format for /smack/load.

12 years agoFixed smack_rule_set_new to use strtok_r instead of strtok.
Jarkko Sakkinen [Wed, 5 Oct 2011 07:56:05 +0000 (10:56 +0300)]
Fixed smack_rule_set_new to use strtok_r instead of strtok.

12 years agoTest application for smack_have_access() and fixes to
Jarkko Sakkinen [Wed, 5 Oct 2011 07:51:19 +0000 (10:51 +0300)]
Test application for smack_have_access() and fixes to
the implementation.

12 years agoImplemented linked list for rules in order to remove glib dependency.
Jarkko Sakkinen [Tue, 4 Oct 2011 16:50:11 +0000 (19:50 +0300)]
Implemented linked list for rules in order to remove glib dependency.

12 years agoRenamed smack_get_peer_label to smack_get_socket_label.
Jarkko Sakkinen [Tue, 4 Oct 2011 11:45:53 +0000 (14:45 +0300)]
Renamed smack_get_peer_label to smack_get_socket_label.

12 years agoChanged smack_have_access() to take fd
Jarkko Sakkinen [Tue, 4 Oct 2011 11:44:12 +0000 (14:44 +0300)]
Changed smack_have_access() to take fd
instead of path.

12 years agoMigrated from uthash to glib. Changed API methods to take file
Jarkko Sakkinen [Tue, 4 Oct 2011 10:02:16 +0000 (13:02 +0300)]
Migrated from uthash to glib. Changed API methods to take file
descriptor instead of path. Removed check based test cases and
created test application for printing rules in kernel form.

12 years agoCleaned up pthread dependency and unused struct
Jarkko Sakkinen [Tue, 4 Oct 2011 07:08:58 +0000 (10:08 +0300)]
Cleaned up pthread dependency and unused struct
_SmackRuleSetIter.

12 years agoRemoved smack_remove* as they are not neede for
Jarkko Sakkinen [Tue, 4 Oct 2011 06:57:06 +0000 (09:57 +0300)]
Removed smack_remove* as they are not neede for
1.0 API.

12 years agoRefactored smack_have_access to use the new kernel API.
Jarkko Sakkinen [Mon, 3 Oct 2011 13:28:15 +0000 (16:28 +0300)]
Refactored smack_have_access to use the new kernel API.

12 years agoAdded transmute support.
Jarkko Sakkinen [Mon, 3 Oct 2011 13:00:51 +0000 (16:00 +0300)]
Added transmute support.

12 years agoCleaned up smack_get_peer_label()
Jarkko Sakkinen [Mon, 3 Oct 2011 12:53:28 +0000 (15:53 +0300)]
Cleaned up smack_get_peer_label()

12 years agoFirst round of API clean up for preparing for 1.0
Jarkko Sakkinen [Mon, 3 Oct 2011 12:35:06 +0000 (15:35 +0300)]
First round of API clean up for preparing for 1.0
freeze. Fixed unit tests.

12 years agoFixed include path and versioning.
Jarkko Sakkinen [Fri, 19 Aug 2011 13:14:02 +0000 (16:14 +0300)]
Fixed include path and versioning.

12 years agoAdded dist-bz2 option to AM_INIT_AUTOMAKE.
Jarkko Sakkinen [Fri, 19 Aug 2011 11:47:47 +0000 (14:47 +0300)]
Added dist-bz2 option to AM_INIT_AUTOMAKE.

12 years agoRemove path parameter from apply_kernel and clear_kernel.
Jarkko Sakkinen [Fri, 19 Aug 2011 11:33:43 +0000 (14:33 +0300)]
Remove path parameter from apply_kernel and clear_kernel.

12 years agoRemove the path paramater to smack_have_access
Brian McGillion [Wed, 10 Aug 2011 08:20:47 +0000 (11:20 +0300)]
Remove the path paramater to smack_have_access

12 years agoRemove goto and format correctly
Brian McGillion [Tue, 9 Aug 2011 05:56:59 +0000 (08:56 +0300)]
Remove goto and format correctly

12 years agoadd smack_get_peer_label for sockets.
Brian McGillion [Thu, 4 Aug 2011 14:13:16 +0000 (17:13 +0300)]
add smack_get_peer_label for sockets.

12 years agoOnly include required dependency on uthash and use autogen.sh to make files.
Brian McGillion [Thu, 28 Jul 2011 18:49:56 +0000 (21:49 +0300)]
Only include required dependency on uthash and use autogen.sh to make files.

13 years agoRemove crappy getline() reading and replace with fgets
Jarkko Sakkinen [Thu, 10 Mar 2011 11:21:18 +0000 (03:21 -0800)]
Remove crappy getline() reading and replace with fgets
reading in smack_rule_set_new().

13 years agoFix: update mtime for global_rules.
Jarkko Sakkinen [Thu, 10 Mar 2011 10:57:07 +0000 (02:57 -0800)]
Fix: update mtime for global_rules.

13 years agoFixed save_to_kernel unit test.
Jarkko Sakkinen [Thu, 10 Mar 2011 10:43:48 +0000 (02:43 -0800)]
Fixed save_to_kernel unit test.

13 years agoImplemented smack_have_access() function.
Jarkko Sakkinen [Thu, 10 Mar 2011 10:34:36 +0000 (02:34 -0800)]
Implemented smack_have_access() function.

13 years agoAdjusted deployment.
Jarkko Sakkinen [Fri, 4 Feb 2011 07:30:38 +0000 (23:30 -0800)]
Adjusted deployment.

13 years agoRemoved check for setxattr() and getxattr() from configure.ac.
Jarkko Sakkinen [Fri, 4 Feb 2011 07:20:20 +0000 (23:20 -0800)]
Removed check for setxattr() and getxattr() from configure.ac.

13 years agoFixed configure.ac.
Jarkko Sakkinen [Wed, 2 Feb 2011 08:26:55 +0000 (00:26 -0800)]
Fixed configure.ac.

13 years agoFixed libsmack deployment. Now version is only in the
Jarkko Sakkinen [Wed, 2 Feb 2011 08:10:03 +0000 (00:10 -0800)]
Fixed libsmack deployment. Now version is only in the
file extension for library blobs.

13 years agoFixed doc deployment to deploy to doc/libsmack-1.0
Jarkko Sakkinen [Tue, 1 Feb 2011 15:34:04 +0000 (07:34 -0800)]
Fixed doc deployment to deploy to doc/libsmack-1.0

13 years agoFixed libsmack-1.0.pc.in
Jarkko Sakkinen [Tue, 1 Feb 2011 14:23:48 +0000 (06:23 -0800)]
Fixed libsmack-1.0.pc.in

13 years agoFixed tests/Makefile.am
Jarkko Sakkinen [Tue, 1 Feb 2011 14:03:09 +0000 (06:03 -0800)]
Fixed tests/Makefile.am

13 years agoFixed libsmack versioning and added pkg-config support.
Jarkko Sakkinen [Tue, 1 Feb 2011 13:47:41 +0000 (05:47 -0800)]
Fixed libsmack versioning and added pkg-config support.

13 years agoFixed version.
Jarkko Sakkinen [Tue, 1 Feb 2011 12:21:38 +0000 (04:21 -0800)]
Fixed version.

13 years agoLink unit test to static lib in order to enable gcov use.
Jarkko Sakkinen [Tue, 1 Feb 2011 11:53:27 +0000 (03:53 -0800)]
Link unit test to static lib in order to enable gcov use.

13 years agoRemoved libsmack.spec.in.
Jarkko Sakkinen [Mon, 31 Jan 2011 08:35:24 +0000 (00:35 -0800)]
Removed libsmack.spec.in.

13 years agoAPI cleanup.
Jarkko Sakkinen [Sun, 30 Jan 2011 13:23:58 +0000 (05:23 -0800)]
API cleanup.

13 years agoRefactored smack_rule_set_list away for full rule set iterator.
Jarkko Sakkinen [Sun, 30 Jan 2011 13:16:41 +0000 (05:16 -0800)]
Refactored smack_rule_set_list away for full rule set iterator.

13 years agoAdded function smack_rule_set_list to iterate over rules.
Jarkko Sakkinen [Sat, 29 Jan 2011 16:38:26 +0000 (08:38 -0800)]
Added function smack_rule_set_list to iterate over rules.

13 years agoUpdated API documentation.
Jarkko Sakkinen [Sat, 29 Jan 2011 14:17:26 +0000 (06:17 -0800)]
Updated API documentation.

13 years agoUpdate documentation comments.
Jarkko Sakkinen [Wed, 26 Jan 2011 13:42:49 +0000 (05:42 -0800)]
Update documentation comments.

13 years agoapi fixes
Jarkko Sakkinen [Wed, 26 Jan 2011 13:37:59 +0000 (05:37 -0800)]
api fixes

13 years agoAPI cleanup for save functions
Jarkko Sakkinen [Wed, 26 Jan 2011 13:18:29 +0000 (05:18 -0800)]
API cleanup for save functions

13 years agoAPI clean up for SmackRuleSet constructor
Jarkko Sakkinen [Wed, 26 Jan 2011 13:16:52 +0000 (05:16 -0800)]
API clean up for SmackRuleSet constructor

13 years agoAPI cleanup.
Jarkko Sakkinen [Wed, 26 Jan 2011 11:49:35 +0000 (03:49 -0800)]
API cleanup.

13 years agoRefine libsmack API. Variable length labels functionality
Jarkko Sakkinen [Wed, 26 Jan 2011 10:42:54 +0000 (02:42 -0800)]
Refine libsmack API. Variable length labels functionality
to be moved into libsmackman.

13 years agofix
Jarkko Sakkinen [Wed, 26 Jan 2011 16:04:40 +0000 (08:04 -0800)]
fix

13 years agoCode coverage fixes.
Jarkko Sakkinen [Tue, 18 Jan 2011 10:46:33 +0000 (02:46 -0800)]
Code coverage fixes.

13 years agoRemoved smack_create_default_config_files().
Jarkko Sakkinen [Tue, 18 Jan 2011 07:23:41 +0000 (23:23 -0800)]
Removed smack_create_default_config_files().

13 years agoFixed invalid sizeof usage in smack_xattr.c.
Jarkko Sakkinen [Mon, 17 Jan 2011 09:22:46 +0000 (01:22 -0800)]
Fixed invalid sizeof usage in smack_xattr.c.

13 years agoRemoved autotools generated files from the project.
Jarkko Sakkinen [Sat, 15 Jan 2011 12:56:47 +0000 (04:56 -0800)]
Removed autotools generated files from the project.

13 years agoAdded smack_label_set_get_short_name()
Jarkko Sakkinen [Fri, 14 Jan 2011 13:50:28 +0000 (05:50 -0800)]
Added smack_label_set_get_short_name()

13 years agoChanged check_xattr API not to do memory allocation.
Jarkko Sakkinen [Fri, 14 Jan 2011 12:09:05 +0000 (04:09 -0800)]
Changed check_xattr API not to do memory allocation.
Simpler to use now from libcreds3.

13 years agoAdded SMACK64MMAP constant for using the corresponding
Jarkko Sakkinen [Fri, 7 Jan 2011 12:57:57 +0000 (14:57 +0200)]
Added SMACK64MMAP constant for using the corresponding
extended attribute.

13 years agoFix package group for -devel package
Mika Bostrom [Fri, 3 Dec 2010 13:44:26 +0000 (15:44 +0200)]
Fix package group for -devel package

This removes a valid rpmlint warning.

13 years agoBuildRequire on uthash-devel 1.9.3+
Mika Bostrom [Fri, 3 Dec 2010 12:58:36 +0000 (14:58 +0200)]
BuildRequire on uthash-devel 1.9.3+

13 years agoRevert "Use embedded uthash"
Mika Bostrom [Fri, 3 Dec 2010 12:56:19 +0000 (14:56 +0200)]
Revert "Use embedded uthash"

This reverts commit 0abe6836d4b43bfda1d1bdfb717d224325257ff0.

Since we can use system's uthash, change back to original build rules.

13 years agoRevert "Import uthash-1.9.3 as a 3rd-party item"
Mika Bostrom [Fri, 3 Dec 2010 12:50:29 +0000 (14:50 +0200)]
Revert "Import uthash-1.9.3 as a 3rd-party item"

This reverts commit 42b08e49bc64c3b92150a4d2700128d0bc6a1f80.

Do not embed uthash after all. Not having it here makes it easier to
integrate libsmack into MeeGo Core, and we now have uthash-devel 1.9.3
available.

13 years agoFixed sprintf() for outputting the short label.
Jarkko Sakkinen [Fri, 3 Dec 2010 13:28:22 +0000 (05:28 -0800)]
Fixed sprintf() for outputting the short label.

13 years agoHash calculation.
Jarkko Sakkinen [Fri, 3 Dec 2010 07:38:26 +0000 (23:38 -0800)]
Hash calculation.

13 years agoCleaned up labels implementation.
Jarkko Sakkinen [Fri, 3 Dec 2010 06:57:38 +0000 (22:57 -0800)]
Cleaned up labels implementation.

13 years agoRead rules with long labels when parameter 'labels' is given.
Jarkko Sakkinen [Fri, 3 Dec 2010 06:53:42 +0000 (22:53 -0800)]
Read rules with long labels when parameter 'labels' is given.

13 years agoSave rules with long labels when parameter 'labels' is given.
Jarkko Sakkinen [Fri, 3 Dec 2010 05:49:02 +0000 (21:49 -0800)]
Save rules with long labels when parameter 'labels' is given.

13 years agoBuildRequire on libattr-devel
Mika Bostrom [Thu, 2 Dec 2010 05:17:27 +0000 (07:17 +0200)]
BuildRequire on libattr-devel

13 years agoBuildRequire on check-devel 0.9.4+
Mika Bostrom [Thu, 2 Dec 2010 05:05:34 +0000 (07:05 +0200)]
BuildRequire on check-devel 0.9.4+

An autobuilder requires to declare complete build dependencies.

13 years agoUse embedded uthash
Mika Bostrom [Thu, 2 Dec 2010 04:59:04 +0000 (06:59 +0200)]
Use embedded uthash

Disable checking of system-wide uthash libraries, provide the local path
header search path for libsmack build.

13 years agoImport uthash-1.9.3 as a 3rd-party item
Mika Bostrom [Thu, 2 Dec 2010 04:50:57 +0000 (06:50 +0200)]
Import uthash-1.9.3 as a 3rd-party item

There is no uthash package for meego 1.1, so we need an in-tree copy.

Uthash license: BSD, embedding allowed.