Code Review
/
src
/
agl-compositor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
compositor: Rename activated_by_default to mapped
[src/agl-compositor.git]
/
src
/
policy-default.c
diff --git
a/src/policy-default.c
b/src/policy-default.c
index
23842ab
..
8d70684
100644
(file)
--- a/
src/policy-default.c
+++ b/
src/policy-default.c
@@
-26,6
+26,12
@@
#include "ivi-compositor.h"
#include "policy.h"
#include "ivi-compositor.h"
#include "policy.h"
+#ifdef HAVE_SMACK
+#include <sys/smack.h>
+#endif
+
+#include <string.h>
+
/*
* default policy implementation allows every action to be possible
*
/*
* default policy implementation allows every action to be possible
*
@@
-78,6
+84,9
@@
ivi_policy_default_surface_advertise_state_change(struct ivi_surface *surf, void
return true;
}
return true;
}
+/* we allow all applications to bind to private extensions. See the deny-all
+ * policy instead for how to retrieve the clients fd and its label to check
+ * against */
static bool
ivi_policy_default_shell_bind_interface(void *client, void *interface)
{
static bool
ivi_policy_default_shell_bind_interface(void *client, void *interface)
{
@@
-131,5
+140,6
@@
ivi_policy_init(struct ivi_compositor *ivi)
if (!ivi->policy)
return -1;
if (!ivi->policy)
return -1;
+ weston_log("Installing 'allow-all' policy engine\n");
return 0;
}
return 0;
}