platform/upstream/smack.git
12 years agoRemove unnecessary description from perror as there only exists one call to each...
Brian McGillion [Wed, 25 Apr 2012 07:55:31 +0000 (10:55 +0300)]
Remove unnecessary description from perror as there only exists one call to each method

12 years agoutils: improve smackcipso so that it loads also from stdin.
Jarkko Sakkinen [Wed, 22 Feb 2012 10:06:39 +0000 (12:06 +0200)]
utils: improve smackcipso so that it loads also from stdin.

Original smackutil smackcipso allowed to read cipso from
stdin. This adds the same feature here.

Conflicts:

utils/smackcipso.c

12 years agoAdd init scripts
Brian McGillion [Mon, 6 Feb 2012 15:40:31 +0000 (17:40 +0200)]
Add init scripts

12 years agoMerge pull request #10 from brianmcgillion/master
jarkkos [Thu, 15 Dec 2011 18:35:09 +0000 (10:35 -0800)]
Merge pull request #10 from brianmcgillion/master

Include guard fix

12 years agoImprove the include guard to avoid conflicts with applications
Brian McGillion [Thu, 15 Dec 2011 09:45:51 +0000 (11:45 +0200)]
Improve the include guard to avoid conflicts with applications

12 years agofixed libsmack.sym
Jarkko Sakkinen [Tue, 13 Dec 2011 13:14:45 +0000 (15:14 +0200)]
fixed libsmack.sym

12 years agolibsmack: revert smack_new_label_from_self()
Jarkko Sakkinen [Tue, 13 Dec 2011 09:52:08 +0000 (11:52 +0200)]
libsmack: revert smack_new_label_from_self()

Reverted smack_new_label_from_self() back. Removed
smack_set_self_label as it is not needed.

12 years agoutils: stdin support for smackload
Jarkko Sakkinen [Sun, 11 Dec 2011 17:02:49 +0000 (19:02 +0200)]
utils: stdin support for smackload

12 years agoutils: cleaned up common code for applying rules.
Jarkko Sakkinen [Sun, 11 Dec 2011 16:51:57 +0000 (18:51 +0200)]
utils: cleaned up common code for applying rules.

12 years agoAdded smack_get_self_label().
Jarkko Sakkinen [Sat, 10 Dec 2011 22:21:49 +0000 (00:21 +0200)]
Added smack_get_self_label().

12 years agoAdded smack_set_self_label().
Jarkko Sakkinen [Sat, 10 Dec 2011 21:33:28 +0000 (23:33 +0200)]
Added smack_set_self_label().

12 years agoFix: common.h was not part of the dist.
Jarkko Sakkinen [Wed, 30 Nov 2011 08:23:35 +0000 (10:23 +0200)]
Fix: common.h was not part of the dist.

12 years agoutils/Makefile.am: fixed installation path.
Jarkko Sakkinen [Wed, 16 Nov 2011 11:09:04 +0000 (13:09 +0200)]
utils/Makefile.am: fixed installation path.

12 years agoMerge pull request #5 from brianmcgillion/master
jarkkos [Tue, 15 Nov 2011 12:12:56 +0000 (04:12 -0800)]
Merge pull request #5 from brianmcgillion/master

extern keyword missing

12 years agoMerge branch 'master' of https://github.com/jarkkos/smack
Brian McGillion [Tue, 15 Nov 2011 12:04:24 +0000 (14:04 +0200)]
Merge branch 'master' of https://github.com/jarkkos/smack

12 years agolibsmack: Fix missing extern qualifier
Brian McGillion [Tue, 15 Nov 2011 12:02:42 +0000 (14:02 +0200)]
libsmack: Fix missing extern qualifier

12 years agoMerge pull request #4 from brianmcgillion/ac028f67ba540b74d2f7d9b169ceaff548ba5f43
jarkkos [Tue, 15 Nov 2011 11:58:58 +0000 (03:58 -0800)]
Merge pull request #4 from brianmcgillion/ac028f67ba540b74d2f7d9b169ceaff548ba5f43

Add chsmack

12 years agoMerge branch 'master' of https://github.com/jarkkos/smack
Brian McGillion [Tue, 15 Nov 2011 11:46:49 +0000 (13:46 +0200)]
Merge branch 'master' of https://github.com/jarkkos/smack

12 years agolibsmack: fixed smack.h installation path
Jarkko Sakkinen [Tue, 15 Nov 2011 11:43:14 +0000 (13:43 +0200)]
libsmack: fixed smack.h installation path

12 years agoMerge branch 'master' of github.com:brianmcgillion/smack
Brian McGillion [Tue, 15 Nov 2011 10:17:27 +0000 (12:17 +0200)]
Merge branch 'master' of github.com:brianmcgillion/smack

12 years agochsmack: Add chsmack from smackutils
Brian McGillion [Tue, 15 Nov 2011 10:07:07 +0000 (12:07 +0200)]
chsmack: Add chsmack from smackutils

12 years agochsmack: Add chsmack from smackutils
Brian McGillion [Tue, 15 Nov 2011 10:07:07 +0000 (12:07 +0200)]
chsmack: Add chsmack from smackutils

12 years agoMerge pull request #2 from brianmcgillion/master
jarkkos [Tue, 15 Nov 2011 10:04:23 +0000 (02:04 -0800)]
Merge pull request #2 from brianmcgillion/master

Fix changes in coding convention

12 years agoutils: Fix the coding conventions
Brian McGillion [Tue, 15 Nov 2011 09:54:43 +0000 (11:54 +0200)]
utils: Fix the coding conventions

13 years agoMerge pull request #1 from brianmcgillion/master
jarkkos [Fri, 11 Nov 2011 14:01:58 +0000 (06:01 -0800)]
Merge pull request #1 from brianmcgillion/master

Commits as agreed

13 years agoMerge branches
Brian McGillion [Fri, 11 Nov 2011 13:40:22 +0000 (15:40 +0200)]
Merge branches

13 years agoBootstrap with autogen
Brian McGillion [Fri, 11 Nov 2011 12:58:54 +0000 (14:58 +0200)]
Bootstrap with autogen

13 years agofixed package information
Jarkko Sakkinen [Fri, 11 Nov 2011 12:42:37 +0000 (14:42 +0200)]
fixed package information

13 years agoAdd initial daemon
Brian McGillion [Fri, 11 Nov 2011 12:33:10 +0000 (14:33 +0200)]
Add initial daemon

13 years agolibsmack: smack_accesses_new_from_file -> smack_accesses_add_from_file
Jarkko Sakkinen [Fri, 11 Nov 2011 09:49:42 +0000 (11:49 +0200)]
libsmack: smack_accesses_new_from_file -> smack_accesses_add_from_file

13 years agosmackctl: fixed a memory leak in cipso_free()
Jarkko Sakkinen [Fri, 11 Nov 2011 09:34:52 +0000 (11:34 +0200)]
smackctl: fixed a memory leak in cipso_free()

13 years agoAdd smackcipso
Brian McGillion [Fri, 11 Nov 2011 08:47:49 +0000 (10:47 +0200)]
Add smackcipso

13 years agoAdd usage
Brian McGillion [Fri, 11 Nov 2011 08:34:04 +0000 (10:34 +0200)]
Add usage

13 years agoCreate smackload based on libsmack
Brian McGillion [Fri, 11 Nov 2011 08:25:42 +0000 (10:25 +0200)]
Create smackload based on libsmack

13 years agoCreate common files for shared util components
Brian McGillion [Fri, 11 Nov 2011 08:01:56 +0000 (10:01 +0200)]
Create common files for shared util components

13 years agoBootstrap with autogen
Brian McGillion [Thu, 10 Nov 2011 18:22:03 +0000 (20:22 +0200)]
Bootstrap with autogen

13 years agoAdded forgotten -Wall -Wextra compilation options and fixed
Jarkko Sakkinen [Thu, 10 Nov 2011 15:49:40 +0000 (17:49 +0200)]
Added forgotten -Wall -Wextra compilation options and fixed
warnings.

13 years agoRest of the libsmack specific to libsmack/Makefile.am
Jarkko Sakkinen [Thu, 10 Nov 2011 14:18:15 +0000 (16:18 +0200)]
Rest of the libsmack specific to libsmack/Makefile.am

13 years agoMoved libsmack.pc.in under libsmack directory.
Jarkko Sakkinen [Thu, 10 Nov 2011 13:45:36 +0000 (15:45 +0200)]
Moved libsmack.pc.in under libsmack directory.

13 years agofixed distcheck
Jarkko Sakkinen [Thu, 10 Nov 2011 13:33:42 +0000 (15:33 +0200)]
fixed distcheck

13 years agoreverted to smack.h
Jarkko Sakkinen [Thu, 10 Nov 2011 11:27:35 +0000 (13:27 +0200)]
reverted to smack.h

13 years agoadjusted apply/clear API
Jarkko Sakkinen [Thu, 10 Nov 2011 10:50:12 +0000 (12:50 +0200)]
adjusted apply/clear API

13 years agoAdjusted self label and peer label API.
Jarkko Sakkinen [Thu, 10 Nov 2011 10:34:18 +0000 (12:34 +0200)]
Adjusted self label and peer label API.

13 years agoCleaned up factory methods.
Jarkko Sakkinen [Thu, 10 Nov 2011 10:18:40 +0000 (12:18 +0200)]
Cleaned up factory methods.

13 years agocleaned up smackaccess and made more scriptable
Jarkko Sakkinen [Thu, 10 Nov 2011 09:38:37 +0000 (11:38 +0200)]
cleaned up smackaccess and made more scriptable

13 years agorenamed tests to utils
Jarkko Sakkinen [Thu, 10 Nov 2011 09:24:42 +0000 (11:24 +0200)]
renamed tests to utils

13 years agoInstall utilities under tests/ to bidir.
Jarkko Sakkinen [Thu, 10 Nov 2011 09:21:21 +0000 (11:21 +0200)]
Install utilities under tests/ to bidir.

13 years agoremoved extern keywords
Jarkko Sakkinen [Wed, 9 Nov 2011 21:37:24 +0000 (23:37 +0200)]
removed extern keywords

13 years agoSmackRuleSet => struct smack_accesses
Jarkko Sakkinen [Wed, 9 Nov 2011 21:35:50 +0000 (23:35 +0200)]
SmackRuleSet => struct smack_accesses

13 years agoAdded version script.
Jarkko Sakkinen [Wed, 9 Nov 2011 21:25:29 +0000 (23:25 +0200)]
Added version script.

13 years agoPut .gitignore files in plac
Jarkko Sakkinen [Wed, 9 Nov 2011 21:10:50 +0000 (23:10 +0200)]
Put .gitignore files in plac

13 years agoremoved ChangeLog
Jarkko Sakkinen [Wed, 9 Nov 2011 21:03:18 +0000 (23:03 +0200)]
removed ChangeLog

13 years agoremove AUTHORS
Jarkko Sakkinen [Wed, 9 Nov 2011 21:02:22 +0000 (23:02 +0200)]
remove AUTHORS

13 years agoFixed m4 directory handling in Makefile.am
Jarkko Sakkinen [Wed, 9 Nov 2011 21:00:45 +0000 (23:00 +0200)]
Fixed m4 directory handling in Makefile.am

13 years agoconfigure.ac: cleanup
Jarkko Sakkinen [Wed, 9 Nov 2011 20:26:18 +0000 (22:26 +0200)]
configure.ac: cleanup

13 years agosmack.h/c -> libsmack.h/c
Jarkko Sakkinen [Wed, 9 Nov 2011 20:16:18 +0000 (22:16 +0200)]
smack.h/c -> libsmack.h/c

13 years agochanged include dir to /usr/include
Jarkko Sakkinen [Wed, 9 Nov 2011 19:16:36 +0000 (21:16 +0200)]
changed include dir to /usr/include

13 years agoremoved README
Jarkko Sakkinen [Wed, 9 Nov 2011 19:14:26 +0000 (21:14 +0200)]
removed README

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

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

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

13 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()

13 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.

13 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().

13 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.

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

13 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.

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

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

13 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

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

13 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

13 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

13 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

13 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.

13 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().

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

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

13 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.

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

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

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

13 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.

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

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

13 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.

13 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.

13 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.

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

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

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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.