123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #ifndef _IPC_ROUTER_SECURITY_H
- #define _IPC_ROUTER_SECURITY_H
- #include <linux/types.h>
- #include <linux/socket.h>
- #include <linux/errno.h>
- #ifdef CONFIG_IPC_ROUTER_SECURITY
- #include <linux/android_aid.h>
- int check_permissions(void);
- int msm_ipc_config_sec_rules(void *arg);
- void *msm_ipc_get_security_rule(u32 service_id, u32 instance_id);
- int msm_ipc_check_send_permissions(void *data);
- int msm_ipc_router_security_init(void);
- void wait_for_irsc_completion(void);
- void signal_irsc_completion(void);
- #else
- static inline int check_permissions(void)
- {
- return 1;
- }
- static inline int msm_ipc_config_sec_rules(void *arg)
- {
- return -ENODEV;
- }
- static inline void *msm_ipc_get_security_rule(u32 service_id,
- u32 instance_id)
- {
- return NULL;
- }
- static inline int msm_ipc_check_send_permissions(void *data)
- {
- return 1;
- }
- static inline int msm_ipc_router_security_init(void)
- {
- return 0;
- }
- static inline void wait_for_irsc_completion(void) { }
- static inline void signal_irsc_completion(void) { }
- #endif
- #endif
|