Kidong Kim [Tue, 21 May 2013 08:48:34 +0000 (17:48 +0900)]
add rule for wrt_launchpad_daemon
Bumjin Im [Wed, 15 May 2013 10:30:10 +0000 (19:30 +0900)]
Adjusting Rules for boolmark
Kidong Kim [Wed, 15 May 2013 07:26:57 +0000 (16:26 +0900)]
add smack rules for sdcard
Kidong Kim [Tue, 14 May 2013 08:58:30 +0000 (17:58 +0900)]
add smack rules for osp/web app
Bumjin Im [Tue, 14 May 2013 06:03:52 +0000 (15:03 +0900)]
Merge "Update .smack files 2" into tizen_2.1
jinha.hwang [Tue, 14 May 2013 05:54:44 +0000 (14:54 +0900)]
Update .smack files 2
Kidong Kim [Tue, 14 May 2013 05:08:26 +0000 (14:08 +0900)]
add new rules for system::share
Krzysztof Jackiewicz [Mon, 13 May 2013 17:06:30 +0000 (19:06 +0200)]
[Release] libprivilege-control_0.0.26.TIZEN
* Added rules for OSP/WRT apps for app_give_access API usage in security-server
Change-Id: Ia529d15219f89d53f27c504b9715207acf1f8ab0
Tomasz Swierczek [Mon, 13 May 2013 16:25:07 +0000 (18:25 +0200)]
Added rules for OSP/WRT apps for app_give_access API usage in security-server
[Issue#] TDIS-5744
[Bug/Feature] Missing SMACK rules for runtime check for access to API.
[Cause] N/A
[Solution] Added rules - temporarily to OSP.smack and WRT.smack
[Verification] use app_enable_permissions() - rule file should contain rule for security-server::api-data-share
Change-Id: Iefc140b1a93e5eec5507e466ea2db11641cff222
Kidong Kim [Mon, 13 May 2013 14:25:55 +0000 (23:25 +0900)]
add new label and rules - system::share
Bumjin Im [Mon, 13 May 2013 06:55:05 +0000 (15:55 +0900)]
Adding x rules for osp-*-services
Bumjin Im [Mon, 13 May 2013 00:57:31 +0000 (09:57 +0900)]
Adjusting overwrapped Rule
Bumjin Im [Sun, 12 May 2013 07:39:57 +0000 (16:39 +0900)]
Removing Label for so files
Bumjin Im [Sun, 12 May 2013 05:18:30 +0000 (14:18 +0900)]
Modifying Smack rules for Apps
Bumjin Im [Sun, 12 May 2013 04:22:29 +0000 (13:22 +0900)]
Modifying Smack rules for Apps
Bumjin Im [Sun, 12 May 2013 03:58:22 +0000 (12:58 +0900)]
Modifying Smack rules for Apps
Bumjin Im [Sun, 12 May 2013 03:52:58 +0000 (12:52 +0900)]
Modifying Smack rules for Apps
jinha.hwang [Sat, 11 May 2013 14:24:20 +0000 (23:24 +0900)]
Update .smack files
Kidong Kim [Sat, 11 May 2013 10:59:46 +0000 (19:59 +0900)]
add default rules
Kidong Kim [Fri, 10 May 2013 08:48:16 +0000 (17:48 +0900)]
merge back from tizen_2.1_smack
Kidong Kim [Thu, 2 May 2013 08:59:26 +0000 (17:59 +0900)]
add new smack labels for vconf and support IPv6
Kidong Kim [Mon, 22 Apr 2013 10:04:32 +0000 (19:04 +0900)]
add new smack rules for tizenprv00.privacy-popup
Kidong Kim [Tue, 16 Apr 2013 05:04:11 +0000 (14:04 +0900)]
add smack rules for oma-ds-agent::cfg
Bumjin Im [Sun, 14 Apr 2013 07:08:13 +0000 (16:08 +0900)]
adding missing rules
Kidong Kim [Fri, 12 Apr 2013 01:11:57 +0000 (10:11 +0900)]
add smack rules for wifi and osp
Junfeng Dong [Thu, 11 Apr 2013 05:48:46 +0000 (14:48 +0900)]
Merge "Fix for 64 bit compatibility." into tizen_2.1
Kidong Kim [Tue, 9 Apr 2013 08:56:54 +0000 (17:56 +0900)]
add smack rules for privacy-manager
Kidong Kim [Mon, 8 Apr 2013 11:46:53 +0000 (20:46 +0900)]
add new rules and remove vconf labels
Kidong Kim [Mon, 8 Apr 2013 09:07:35 +0000 (18:07 +0900)]
add new smack labels
Junfeng Dong [Mon, 25 Mar 2013 13:01:33 +0000 (21:01 +0800)]
Fix for 64 bit compatibility.
- Fix hardcoding path.
- Use %cmake to set default paths.
- Fix type casting between pointer and int.
Change-Id: I2d1d42843ffd71281b17bf9f88e1ddea52bc8623
Kidong Kim [Fri, 5 Apr 2013 02:38:47 +0000 (11:38 +0900)]
add smack rules regarding secure-storage
Kidong Kim [Thu, 4 Apr 2013 08:28:46 +0000 (17:28 +0900)]
add smack rules regarding data-provider-master
Kidong Kim [Wed, 3 Apr 2013 05:16:53 +0000 (14:16 +0900)]
add missing smack rules
Kidong Kim [Mon, 1 Apr 2013 04:54:47 +0000 (13:54 +0900)]
add new rules for bt-service
Tomasz Swierczek [Wed, 27 Mar 2013 10:11:26 +0000 (19:11 +0900)]
Merge "[Release] libprivilege-control_0.0.25.TIZEN" into tizen_2.1
Krzysztof Jackiewicz [Wed, 27 Mar 2013 09:55:13 +0000 (10:55 +0100)]
[Release] libprivilege-control_0.0.25.TIZEN
* New API functions added
* Bugfixes
Change-Id: Id2a8cee05a210a2910b80ff8f084c9c8d5709bd9
Kidong Kim [Wed, 27 Mar 2013 05:12:49 +0000 (14:12 +0900)]
integrate default smack rules
Tomasz Swierczek [Tue, 26 Mar 2013 15:31:58 +0000 (16:31 +0100)]
Added proper #ifdef SMACK_ENABLED to new APIs static functions.
[Issue#] SSDWSSP-156
[Bug] Build break caused by missing #ifdefs
[Cause] Code cherrypicked from private repository
[Solution] Added missing lines with #ifdefs
[Verification] Proper build with and without #ifdefs in spec file
Change-Id: I7bedc6a41bfb6911515701da1c849fbda9dab4d8
Rafal Krypa [Tue, 26 Mar 2013 11:06:06 +0000 (12:06 +0100)]
Implicitly include base permission in app_enable_permissions().
[Issue#] N/A
[Feature] When adding list of permissions, also add an internal permission related to app type.
[Cause] New semantics for permission names is incompatible with passing this from caller.
[Solution] N/A
[Verification] Build only.
Change-Id: I254c2be16de6ec4c9a977e6d95da9f49e5e658e9
Tomasz Swierczek [Tue, 26 Mar 2013 08:30:06 +0000 (09:30 +0100)]
Added stub for add_shared_dir_readers function.
Change-Id: If6b657f841da48ffa3bd5b81f90d9c78b8f14c4c
Rafal Krypa [Mon, 25 Mar 2013 19:38:16 +0000 (20:38 +0100)]
Don't fail when trying to enable app permissions that doesn't exist.
[Issue#] N/A
[Feature] Ability to function with missing Smack permission configs.
[Cause] Not all API features are know at the moment.
[Solution] Gently return on missing permission name.
[Verification] Build only.
Change-Id: Icdb3393a65abc820e953df646b8fb4927b4cfa49
Rafal Krypa [Mon, 25 Mar 2013 19:35:45 +0000 (20:35 +0100)]
Add new API function app_enable_permissions() to replace app_add_permissions() and app_add_volatile_permissions().
New function replaces the two old functions and accepts one additional argument:
application type. Permission names are now accepted in new form, compatinble
with Tizen API feature names, like "http://tizen.org/privilege/alarm".
[Issue#] SSDWSSP-148
[Feature] Enable passing names of application permissions in format used in specification.
[Cause] A list of public API features with exact names was provided.
[Solution] Implement parsing API feature names like "http://tizen.org/privilege/alarm".
[Verification] Build only.
Change-Id: Ief7b2e95950ba9fcb2890385d88a14b6843182f5
Rafal Krypa [Mon, 25 Mar 2013 19:12:14 +0000 (20:12 +0100)]
Add new API functions app_install() and app_uninstall().
The first function must be called by installer before any other call to app_*
functions for the app. It will create empty Smack config file for the app.
It will fail if the file was already there (conflicting app_ids).
Other functions operating on Smack rules for the application will fail if
this file is not present.
The latter function removes the file, supposed to be the last call to
libprivilege-control from uninstaller.
For temporary compatibility old permissive behaviour of app_add_permissions() is
retained.
[Issue#] N/A
[Feature] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, install, reboot target.
Change-Id: I371c38b88a0c14a17eade5526e8fa1276a482f85
Rafal Krypa [Fri, 22 Mar 2013 18:37:04 +0000 (19:37 +0100)]
New API function app_add_friend(app_id1, app_id2).
Function grants full Smack rule between the two applications.
[Issue#] SSDWSSP-123
[Feature] Provide API for hybrid applications.
[Cause] There are groups of applications that need full access to each other.
[Solution] Provide API for granting appropriate Smack rules.
[Verification] Build only (no tests nor API usage at the moment).
Change-Id: Iaa6b483246bcf0ecdb2f53e788b5f72b05b43645
Rafal Krypa [Fri, 1 Mar 2013 18:10:42 +0000 (19:10 +0100)]
Rework Smack-less mode.
[Issue#] N/A
[Feature] Only turn off parts that really require Smack support when it's not available.
[Cause] Previous implementation was written very quickly.
[Solution] Revise checking for Smack support and turning off parts of the functions.
[Verification] Build, install and run on Smack-less system.
Change-Id: I0f857c1a1d9cafd5523aea1280e7c1309b641aa3
Rafal Krypa [Wed, 20 Feb 2013 12:17:31 +0000 (13:17 +0100)]
Cosmetic: fix space indentation.
[Issue#] N/A
[Bug] Inconsisten code style.
[Cause] Different developers.
[Solution] Unify indentation.
[Verification] Build.
Change-Id: Ia04825c77ec1a632169a910cf2adef5c222a9c59
Bartlomiej Grzelewski [Fri, 15 Feb 2013 13:53:59 +0000 (14:53 +0100)]
Enable libprivilege-control for target without smack module in kernel.
[Issue#] N/A
[Feature] N/A
[Cause] N/A
[Solution] Added check if smack is supported in kernel.
[Verification] Compile, install, reboot target
Change-Id: I28bbcbe162e32a55c72c24a12c782ed269183cd8
Tomasz Swierczek [Fri, 15 Feb 2013 11:47:47 +0000 (12:47 +0100)]
Temporary fix for web app launching.
[Issue#] N/A
[Feature] N/A
[Cause] N/A
[Solution] Commented reset_permissions() and changed web app label to shorter
[Verification] Compile, install, reboot target
Change-Id: I77e4af57eb9050d1acf2eab24b8ccc1b145887ac
Bumjin Im [Mon, 25 Mar 2013 07:29:55 +0000 (16:29 +0900)]
Modifying system::video --> device::video
Junfeng [Wed, 20 Mar 2013 03:03:46 +0000 (11:03 +0800)]
Fix for compatibility of GCC 4.7.
Change-Id: If923d10339e088cc1addb7d21e68097a94d6f715
Ki-wook [Tue, 19 Mar 2013 15:57:27 +0000 (00:57 +0900)]
Change for booting fail on systemd
Signed-off-by: Ki-wook <kiwook.hong@samsung.com>
Bumjin Im [Mon, 18 Mar 2013 10:33:22 +0000 (19:33 +0900)]
adding missing rules due to Smack labels of osp-*-service
Bumjin Im [Mon, 18 Mar 2013 09:34:07 +0000 (18:34 +0900)]
Modifying rules for changed osp-*-service labels
Jinkun Jang [Fri, 15 Mar 2013 16:17:55 +0000 (01:17 +0900)]
merge with master
Bumjin Im [Thu, 14 Mar 2013 01:26:28 +0000 (10:26 +0900)]
Modifying device node labels
Jinkun Jang [Tue, 12 Mar 2013 16:51:32 +0000 (01:51 +0900)]
Tizen 2.1 base
Kidong Kim [Mon, 11 Mar 2013 08:46:14 +0000 (17:46 +0900)]
remove udev rules file
Bumjin Im [Fri, 8 Mar 2013 08:38:21 +0000 (17:38 +0900)]
Adding missing rule for crash popup
Bumjin Im [Mon, 4 Mar 2013 04:09:22 +0000 (13:09 +0900)]
Adding missing rules
Bumjin Im [Sun, 3 Mar 2013 23:40:36 +0000 (08:40 +0900)]
Revising running Smack default rules for all combinations
Kidong Kim [Thu, 28 Feb 2013 06:35:46 +0000 (15:35 +0900)]
apply smack default rules
Kidong Kim [Tue, 26 Feb 2013 07:47:27 +0000 (16:47 +0900)]
apply smack default rule
Kidong Kim [Tue, 26 Feb 2013 00:55:12 +0000 (09:55 +0900)]
add new rules
Tomasz Swierczek [Tue, 19 Feb 2013 08:46:55 +0000 (09:46 +0100)]
Disable libprivilege-control logs for performance increase
[Issue#] N/A
[Bug] Logs degrading performance.
[Cause] Too much logs in dlog.
[Solution] commented line in CMakeLists.txt.
[Verification] Compile, install, reboot target - no libprivilege logs in dlog.
Change-Id: I38cd536df1e2a97bab89e526dc82ea80bf53587d
Tomasz Swierczek [Thu, 14 Feb 2013 09:00:11 +0000 (10:00 +0100)]
[Release] libprivilege-control_0.0.24.TIZEN
* Refactoring: adjust names of some internal identifiers.
* Refactoring: removed compilation warnings when SMACK is disabled.
* Disabled SMACK operation for tizendev.org.
* Remove prefix from process labels of WRT applications.
* Provide app_reset_permissions() API function.
* Provide app_add_volatile_permissions() API function.
* Rewrite internal function set_smack_for_wrt().
* Recreate Smack configuration files for WRT devcaps.
* Remove legacy code for WRT, enable new WRT functionality.
Change-Id: Ibc6584f5b2a6ed7d5fa85f555e7ca5bee05c4056
Tomasz Swierczek [Thu, 14 Feb 2013 08:57:09 +0000 (09:57 +0100)]
Disabled SMACK on tizendev.org (removed usage)
[Issue#] N/A
[Feature] N/A
[Cause] SMACK is disabled on tizendev.org - libprivilege-control API needs to return success temporarily
[Solution] Comment SMACK_ENABLED #ifdef in CMakeLists.txt
[Verification] Build, install, reboot target device
Change-Id: Icfbc38aedfffbd1b386fe62b86cf820735d06090
Tomasz Swierczek [Thu, 14 Feb 2013 08:06:59 +0000 (09:06 +0100)]
Removed compilation warnings when SMACK is disabled.
[Issue#] N/A
[Feature] N/A
[Cause] N/A
[Solution] #ifdef SMACK operations when SMACK_ENABLED is not set
[Verification] Build, install, reboot target device
Change-Id: I777422f68ea3e950dc451514b78f0287e1703c3c
Rafal Krypa [Wed, 13 Feb 2013 15:12:06 +0000 (16:12 +0100)]
Remove legacy code for WRT, enable new WRT functionality.
[Issue#] SSDWSSP-95
[Feature] Remove old APIs designed for WRT, enable the new one.
[Cause] New API is available and the old one was never used.
[Solution] N/A
[Verification] Build, install, run tests from security-tests package.
Change-Id: I7e010f68832c9a79a3690de34354bc29176e7ba6
Rafal Krypa [Wed, 13 Feb 2013 15:10:09 +0000 (16:10 +0100)]
Recreate Smack configuration files for WRT devcaps.
[Issue#] SSDWSSP-95
[Feature] Provide empty Smack file for each WRT devcap.
[Cause] Unification of API for WRT apps.
[Solution] N/A
[Verification] Build, install, run tests from security-tests package.
Change-Id: I3253e22e4de7a1f01001c89d50348fbdf1403075
Rafal Krypa [Wed, 13 Feb 2013 15:03:47 +0000 (16:03 +0100)]
Rewrite internal function set_smack_for_wrt().
[Issue#] SSDWSSP-95
[Feature] Rewrite Smack setting for WRT process according to new requirements.
[Cause] Unification of API for WRT apps.
[Solution] N/A
[Verification] Build, install, run tests from security-tests package.
Change-Id: I995f78c12c10966208509754f736358b6a01702c
Rafal Krypa [Wed, 13 Feb 2013 14:42:18 +0000 (15:42 +0100)]
Provide app_add_volatile_permissions() API function.
[Issue#] SSDWSSP-95
[Feature] Function for granting one-time Smack rules for an application.
[Cause] Unification of API for WRT apps.
[Solution] N/A
[Verification] Build, install, run tests from security-tests package.
Change-Id: I92f168b4f007adc0ac1b92437dacff911a1a262d
Rafal Krypa [Tue, 12 Feb 2013 14:39:27 +0000 (15:39 +0100)]
Provide app_reset_permissions() API function.
[Issue#] SSDWSSP-95
[Feature] Function for re-reading Smack rules for an application from disk.
[Cause] Unification of API for WRT apps.
[Solution] N/A
[Verification] Build, install, run tests from security-tests package.
Change-Id: I5c9e5816edb19d1038ff9505845a90a2c272969e
Rafal Krypa [Tue, 12 Feb 2013 13:59:14 +0000 (14:59 +0100)]
Remove prefix from process labels of WRT applications.
[Issue#] N/A
[Feature] Unify Smack labeling of WRT applications.
[Cause] Unification of WRT and non-WRT APIs.
[Solution] N/A
[Verification] Build, install, run tests.
Change-Id: I2f96cada573fb4349b76faf88f8d7ff68630c825
Rafal Krypa [Mon, 11 Feb 2013 17:38:25 +0000 (18:38 +0100)]
Refactoring: adjust names of some internal identifiers.
[Issue#] N/A
[Feature] Unify internal naming convention.
[Cause] Refactoring
[Solution] N/A
[Verification] Build
Change-Id: Idb0ba56c36c0f65b7604eb6e45c2701defab2d7c
Tomasz Swierczek [Wed, 6 Feb 2013 14:05:48 +0000 (15:05 +0100)]
[Release] libprivilege-control_0.0.23.TIZEN
* Fixing bug in setting execute label for executable files.
* Correct bug in dir_set_smack_r() introduced by previous fix.
* Fix implementation of setting process label from Smack exec label.
* Remove white spaces at the end of lines of smack_default_rules file
Change-Id: I4b1201ad3283e801773839291a0e902922eafe48
Rafal Krypa [Tue, 5 Feb 2013 16:10:21 +0000 (17:10 +0100)]
Fix implementation of setting process label from Smack exec label.
[Issue#] SSDWSSP-80
[Bug] set_smack_from_binary() gets label from symlink, not its target.
[Cause] Used function for getting label doesn't follow symlinks.
[Solution] Change the function to the symlink-following one.
[Verification] Build, install, run latest tests from security-tests package.
Change-Id: Ibc67d8f91621ad0ab05c1690d87604acdc78c995
Rafal Krypa [Tue, 5 Feb 2013 14:13:56 +0000 (15:13 +0100)]
Correct bug introduced by patch 8ee07d7.
[Issue#] SSDWSSP-70
[Bug] Internal function dir_set_smack_r() ignores type mask argument.
[Cause] Lack of curly brackets after if.
[Solution] Fix the typo in code.
[Verification] Build, install, run latest tests from security-tests package.
Change-Id: Ibed39f9f103231c904d90299eadfaf93c0524b63
Zofia Abramowska [Tue, 5 Feb 2013 10:35:16 +0000 (11:35 +0100)]
Fixing bug in setting execute label for executable files
[Issue#] SSDWSSP-70
[Bug] Execute labels was set for all files (not only executable)
[Cause] Bad flags and logic for given API
[Solution] Changed stat flags and now execute label is set for
everything with execute permissions and then removed from directories
[Verification] Successful build
Change-Id: Ic812c4872190d0faa2d1175edb98389d79b83b61
Rafal Krypa [Mon, 4 Feb 2013 11:35:28 +0000 (12:35 +0100)]
smack_default_rules: remove white spaces at the end of lines
This cosmetic change is intended to align the file between RSA and private
repositories, making the diff minimal.
No functional changes introduced.
Change-Id: I78c911068bfe8254fa1040898ddfbe717a6f911c
Tomasz Swierczek [Tue, 5 Feb 2013 08:26:44 +0000 (09:26 +0100)]
[Release] libprivilege-control_0.0.22.TIZEN
* Added new API for setting access/execute labels and transmute on OSP apps directories
* Fixed dlog usage
* Reverted "make symbolic link of udev rules file" (commit
c3a7c9d1188f08fdc950858c589173bb5bb0c817)
Change-Id: I4dd69f4b637207ed635d0c13332d7f0d5540b681
Rafal Krypa [Mon, 4 Feb 2013 18:40:28 +0000 (19:40 +0100)]
Correct debug in dir_set_smack_r().
[Issue#] N/A
[Bug] Debug log about setting Smack label on file is printed even for files don't matching the mask.
[Cause] Debug log misplaced.
[Solution] Move the log inside if block, checking whether file should be labeled.
[Verification] Build.
Change-Id: I1d83ca6986be8e4a47818e69738a66deda1b9b74
Janusz Kozerski [Mon, 4 Feb 2013 15:36:29 +0000 (16:36 +0100)]
Fix segfault in DLOG in dir_set_smack_r function.
[Issue#] N/A
[Bug] Segfult in dir_set_smack_r function.
[Cause] Wrong DLOG agrument - printing enum like a string.
[Solution] Fix print format.
[Verification] Build libprivilege with WRT_SMACK_ENABLE and run libprivilege-control tests.
Change-Id: I7be2f912537a4585afdcf9cc088eea340dfb0c74
Zofia Abramowska [Mon, 4 Feb 2013 15:13:57 +0000 (16:13 +0100)]
Changes for label settings on directories API
[Issue#] SSDWSSP-70
[Feature] New API for setting label on application directory and
application shared directory
[Cause] N/A
[Solution] N/A
[Verification] Successful build
Change-Id: I9b0d739ee2a4fa636a226f1ef81cd29d06cd6502
Rafal Krypa [Fri, 1 Feb 2013 17:52:45 +0000 (18:52 +0100)]
Revert "make symbolic link of udev rules file"
This reverts commit
c3a7c9d1188f08fdc950858c589173bb5bb0c817.
The reverted commit was a workaround for pre-v182 udev. Since udev has
been upgraded already, the workaround is no longer needed.
Change-Id: Ife6a922f0daa1ec851221151c9b1c814d63a25d0
Rafal Krypa [Fri, 1 Feb 2013 16:24:50 +0000 (17:24 +0100)]
[Release] libprivilege-control_0.0.21.TIZEN
* add new label and change label - system::core -> sys-assert::core
* Adding new API for setting label and transmute on directory
Change-Id: Ic20d398f2f0b57654d5f0245d1c38e256e98d921
Zofia Abramowska [Fri, 1 Feb 2013 11:15:59 +0000 (12:15 +0100)]
Adding new API for setting label and transmute on directory
[Issue#] SSDWSSP-67
[Feature] New API for setting label and transmute on directory
[Cause] N/A
[Solution] N/A
[Verification] Successful build
Change-Id: I81e7b0cbbbc5ec857c7dc4be450691dc8d7994b5
Kidong Kim [Fri, 1 Feb 2013 00:38:19 +0000 (09:38 +0900)]
add new label and change label - system::core -> sys-assert::core
Rafal Krypa [Wed, 30 Jan 2013 16:16:41 +0000 (17:16 +0100)]
[Release] libprivilege-control_0.0.20.TIZEN
* Prevent related bugfixes.
* add new default smack rule.
* add new group for crash-logger.
* add new smack label - system::crash.
* Bug fix in adding permissions.
* Implement logging in libprivilege-control.
* Fix parsing of Smack config files.
* Remove some unnecessary code from wrt_set_src_dir() and wrt_set_data_dir().
Change-Id: I70cd2ba8ab5ac876be726aac4902939efc250a61
Rafal Krypa [Tue, 29 Jan 2013 17:19:06 +0000 (18:19 +0100)]
Remove some unnecessary code from wrt_set_src_dir() and wrt_set_data_dir().
[Issue#] N/A
[Bug] Widget label constructed, where it is not used.
[Cause] Only file labels are needed in those functions.
[Solution] Remove appropriate code blocks.
{Verification] Build.
Change-Id: I3e9c6908c90efc8832f9c93177f371e1e9f5afd2
Rafal Krypa [Fri, 25 Jan 2013 16:13:51 +0000 (17:13 +0100)]
Fix parsing of Smack config files.
[Issue#] N/A
[Bug] Giving Smack permissions to apps based on permissions list not working.
[Cause] Invalid return code from fscanf() expected.
[Solution] Fix parsing in perm_to_smack() internal function.
[Verification] Run libprivilege-control tests from security-tests.
Change-Id: I9efd05b256e31e2c39bc479db01b744e3169c3f7
Janusz Kozerski [Tue, 22 Jan 2013 15:29:43 +0000 (16:29 +0100)]
Implement logging in libprivilege-control
[Issue#] LINUXSWAP-440
[Bug] N/A
[Cause] Missing logs in libprivilege-control.
[Solution] Add logs.
[Verification] Build, install, reboot target. Verify running of native applications and widgets. Run dlogutil and check if logs are present.
Change-Id: I9e13d5f465ee306d6b350f300bd6cb0ebefe1ad8
Kidong Kim [Wed, 30 Jan 2013 01:51:54 +0000 (10:51 +0900)]
add new smack label - system::crash
Jan Olszak [Thu, 17 Jan 2013 14:10:26 +0000 (15:10 +0100)]
Bug fix in adding permissions.
[Issue] Bad function arguments.
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build.
Change-Id: I2dc34ba858340316da5abd000431f9ac0d001d9c
Kidong Kim [Fri, 25 Jan 2013 05:19:36 +0000 (14:19 +0900)]
add new group for crash-logger
Kidong Kim [Thu, 24 Jan 2013 10:24:34 +0000 (19:24 +0900)]
add new default smack rule
Mariusz Domanski [Tue, 15 Jan 2013 14:40:06 +0000 (15:40 +0100)]
Prevent related bugfixes.
[Issue] N/A
[Bug] Bugs found by Coverity.
[Cause] N/A
[Solution] Fix for copy-paste error.
[Verification] Build libprivilege-control, installl package
on target and successfuly reboot target.
Rafal Krypa [Thu, 10 Jan 2013 16:47:34 +0000 (17:47 +0100)]
[Release] libprivilege-control_0.0.19
* Removed "Epoch" from spec file.
* Remove stale permission files.
* Introduce WRT_ prefix in smack for current SMACK configuration files.
* Drop legacy USE_PRIVILEGE_CONTROL ifdef.
* Change syntax of SMACK config files.
* New API for native/OSP installer.
* Add SMACK config for OSP apps.
Change-Id: Ia481bcd10158a6491e439cf3bde32987c367bc6c
Rafal Krypa [Tue, 8 Jan 2013 19:32:03 +0000 (20:32 +0100)]
Add SMACK config for OSP apps.
[Issue#] LINUXSWAP-426
[Feature] Add SMACK file prepared by Kidong Kim.
[Cause] New API for OSP app installer.
[Solution] Include the file, adapted to the final rule files format.
[Verification] N/A
Change-Id: Idb096c6841e1b92d210bdae8a98b16035d0b0953
Rafal Krypa [Tue, 8 Jan 2013 19:27:59 +0000 (20:27 +0100)]
New API for native/OSP installer.
[Issue#] LINUXSWAP-426
[Feature] New API for simplified SMACK management for native apps.
[Cause] New API has been requested and designed.
[Solution] Implement new functions: app_add_permissions, app_revoke_permissions, app_label_dir
[Verification] Only build verification, until the API is used.
Change-Id: I37110e030a71e958dda80650b376036c5dcc7051
Rafal Krypa [Tue, 8 Jan 2013 17:15:00 +0000 (18:15 +0100)]
Change syntax of SMACK config files.
[Issue#] LINUXSWAP-426
[Feature] New syntax: "~APP~ OBJECT PERM" or "SUBJECT ~APP~ PERM"
[Cause] The syntax has been discussed.
[Solution] Use three-field syntax to make files understandable easier.
[Verification] Build, install, reboot target.
Change-Id: I5c3c7a331373495a0944680beb72f72fa6062091