summaryrefslogtreecommitdiff
path: root/Xext/xselinuxint.h
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2010-05-12 20:25:30 -0400
committerKeith Packard <keithp@keithp.com>2010-05-13 10:07:31 -0700
commitc9e7ca4404803fe44d4684e0bb2ca2ee10fd4bb3 (patch)
treea38876b646954be87a21be94fede984aae0a566e /Xext/xselinuxint.h
parentbca85e2e127a8a23e3a2debcfeb3ae07cd3c66ac (diff)
xselinux: Remove use of devPrivates init/free callbacks.
Commit eb9210097efea81065c301e5b6b4da7a566deb4a removed the sidget/sidput calls which were the major reason for using the callbacks. The remaining operations can be skipped or worked around. Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext/xselinuxint.h')
-rw-r--r--Xext/xselinuxint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xext/xselinuxint.h b/Xext/xselinuxint.h
index 854a57dd7..e5dbe11f1 100644
--- a/Xext/xselinuxint.h
+++ b/Xext/xselinuxint.h
@@ -36,6 +36,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* Types
*/
+#define COMMAND_LEN 64
+
/* subject state (clients and devices only) */
typedef struct {
security_id_t sid;
@@ -46,7 +48,7 @@ typedef struct {
security_id_t sel_use_sid;
security_id_t prp_use_sid;
struct avc_entry_ref aeref;
- char *command;
+ char command[COMMAND_LEN];
int privileged;
} SELinuxSubjectRec;