#!/usr/bin/env python
# -*- coding: utf-8 -*-

""" Constant keywords associated with access control """

import os

word_dict = {}
word_dict["acl"] = [["acl", "uid", "gid", "perm", "permission"], [" acl ", "acl_", "_acl", "_acl_", " uid ", " gid ", "_uid", "_gid", "uid_", "gid_", "_uid_", "_gid_", " permission ", "_permission", "_permission_", "permission_", " perm ", "_perm", "perm_", "_perm_"]] # ["permission"]]
word_dict["owner"] = [["ownership"],[" owner ", "owner_", "_owner", "_owner_"]]
word_dict["chroot"] = [["chroot"], ["chroot"]]

word_dict["namespace"] = [["namespace", "abstract-namespace", "namespaces"],["namespace", "namespaces"]]
word_dict["capability"] = [["capability", "cap", "capable"], [" capability ", "capability_", "_capability", "_capability_", " cap ","cap_", "_cap", "_cap_", " capable ", "capable_", "_capable", "_capable_"]]
word_dict["cgroups"] = [["cgroup", "cgroups"], ["cgroup", "cgroups"]]

word_dict["lsm_selinux"] = [["selinux", "lsm", "security", "avc"], ["security_", "_security", "_security_", " security ", " selinux ", " lsm ", "selinux_", "lsm_", "_selinux", "_lsm", "_selinux_", "_lsm_", " acv ", "acv_", "_acv", "_acv_"]]

kernel_path = os.getcwd() + "/kernel/linux"


def get_word_lst():
	word_lst = []
	for l in word_dict.values():
		word_lst.extend(l[0])
	return word_lst