89 |
* |
* |
90 |
* @operation: Type of operation. |
* @operation: Type of operation. |
91 |
* @domain: Pointer to "struct ccs_domain_info". |
* @domain: Pointer to "struct ccs_domain_info". |
92 |
* @condition: Pointer to "struct ccs_condition_list". May be NULL. |
* @condition: Pointer to "struct ccs_condition". May be NULL. |
93 |
* @is_delete: True if it is a delete request. |
* @is_delete: True if it is a delete request. |
94 |
* |
* |
95 |
* Returns 0 on success, negative value otherwise. |
* Returns 0 on success, negative value otherwise. |
96 |
*/ |
*/ |
97 |
static int ccs_update_capability_acl(const u8 operation, |
static int ccs_update_capability_acl(const u8 operation, |
98 |
struct ccs_domain_info *domain, |
struct ccs_domain_info *domain, |
99 |
struct ccs_condition_list *condition, |
struct ccs_condition *condition, |
100 |
const bool is_delete) |
const bool is_delete) |
101 |
{ |
{ |
102 |
struct ccs_capability_acl_record *entry = NULL; |
struct ccs_capability_acl_record *entry = NULL; |
222 |
* |
* |
223 |
* @data: String to parse. |
* @data: String to parse. |
224 |
* @domain: Pointer to "struct ccs_domain_info". |
* @domain: Pointer to "struct ccs_domain_info". |
225 |
* @condition: Pointer to "struct ccs_condition_list". May be NULL. |
* @condition: Pointer to "struct ccs_condition". May be NULL. |
226 |
* @is_delete: True if it is a delete request. |
* @is_delete: True if it is a delete request. |
227 |
* |
* |
228 |
* Returns 0 on success, negative value otherwise. |
* Returns 0 on success, negative value otherwise. |
229 |
*/ |
*/ |
230 |
int ccs_write_capability_policy(char *data, struct ccs_domain_info *domain, |
int ccs_write_capability_policy(char *data, struct ccs_domain_info *domain, |
231 |
struct ccs_condition_list *condition, |
struct ccs_condition *condition, |
232 |
const bool is_delete) |
const bool is_delete) |
233 |
{ |
{ |
234 |
u8 capability; |
u8 capability; |