Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/selinux-fc.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd" | 2 | <!DOCTYPE language SYSTEM "language.dtd" | ||
3 | [ | 3 | [ | ||
4 | <!-- Identifier with M4 Arg. or variables --> | 4 | <!-- Identifier with M4 Arg. or variables --> | ||
5 | <!ENTITY charIden "(\$[@#]|[\w\-\$\*\{\}%])"> | 5 | <!ENTITY charIden "(\$[@#]|[\w\-\$\*\{\}%])"> | ||
6 | <!ENTITY simpleIdentifier "(\$[@#]|[a-zA-Z\$%])&charIden;*"> | 6 | <!ENTITY simpleIdentifier "(\$[@#]|[a-zA-Z\$%])&charIden;*"> | ||
7 | <!ENTITY identifier "&simpleIdentifier;(\.?&charIden;)*"> | 7 | <!ENTITY identifier "&simpleIdentifier;(\.?&charIden;)*"> | ||
8 | <!ENTITY startIdentifier "(\b[a-zA-Z]|\$[@#]|[\$%])&charIden;*(\.?&charIden;)*"> | 8 | <!ENTITY startIdentifier "(\b[a-zA-Z]|\$[@#]|[\$%])&charIden;*(\.?&charIden;)*"> | ||
9 | <!ENTITY mlsLevel "&identifier;(\s*:\s*&identifier;(\s*,\s*&identifier;)*)?"> | 9 | <!ENTITY mlsLevel "&identifier;(\s*:\s*&identifier;(\s*,\s*&identifier;)*)?"> | ||
10 | ]> | 10 | ]> | ||
11 | 11 | | |||
12 | <!-- | 12 | <!-- | ||
13 | SELinux File Contexts Syntax Highlighting Definition for Kate | 13 | SELinux File Contexts Syntax Highlighting Definition for Kate | ||
14 | ========================================================================================== | 14 | ========================================================================================== | ||
15 | This file is part of the KDE's KSyntaxHighlighting framework. | 15 | This file is part of the KDE's KSyntaxHighlighting framework. | ||
16 | 16 | | |||
17 | Copyright (c) 2018 Nibaldo González S. (nibgonz@gmail.com) | 17 | Copyright (c) 2018-2019 Nibaldo González S. (nibgonz@gmail.com) | ||
18 | 18 | | |||
19 | Permission is hereby granted, free of charge, to any person obtaining a copy of this | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy of this | ||
20 | software and associated documentation files (the "Software"), to deal in the Software | 20 | software and associated documentation files (the "Software"), to deal in the Software | ||
21 | without restriction, including without limitation the rights to use, copy, modify, merge, | 21 | without restriction, including without limitation the rights to use, copy, modify, merge, | ||
22 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit | 22 | publish, distribute, sublicense, and/or sell copies of the Software, and to permit | ||
23 | persons to whom the Software is furnished to do so, subject to the following conditions: | 23 | persons to whom the Software is furnished to do so, subject to the following conditions: | ||
24 | 24 | | |||
25 | The above copyright notice and this permission notice shall be included | 25 | The above copyright notice and this permission notice shall be included | ||
Show All 11 Lines | 36 | SELinux policy files with definitions of file contexts: | |||
37 | - Labeling Policy Files: *.fc | 37 | - Labeling Policy Files: *.fc | ||
38 | - Policy Config. Files: file_contexts, file_contexts_*, file_contexts.local, | 38 | - Policy Config. Files: file_contexts, file_contexts_*, file_contexts.local, | ||
39 | file_contexts.homedirs, file_contexts.template, homedir_template | 39 | file_contexts.homedirs, file_contexts.template, homedir_template | ||
40 | - SE for Android Policy Config. Files: service_contexts, property_contexts, | 40 | - SE for Android Policy Config. Files: service_contexts, property_contexts, | ||
41 | hwservice_contexts | 41 | hwservice_contexts | ||
42 | - Policy Build Files: initial_sid_contexts, genfs_contexts, fs_use | 42 | - Policy Build Files: initial_sid_contexts, genfs_contexts, fs_use | ||
43 | 43 | | |||
44 | Change log: | 44 | Change log: | ||
45 | * Version 4 [02-Apr-2019]: Remove one indentation. | ||||
45 | * Version 3 [09-Sep-2018]: | 46 | * Version 3 [09-Sep-2018]: | ||
46 | - Update itemData's style for the new Solarized color schemes. | 47 | - Update itemData's style for the new Solarized color schemes. | ||
47 | * Version 2 [28-Aug-2018]: | 48 | * Version 2 [28-Aug-2018]: | ||
48 | - Some improvements. RegExp and some rules are moved to "selinux.xml". | 49 | - Some improvements. RegExp and some rules are moved to "selinux.xml". | ||
49 | - Add statements keywords that use file contexts. | 50 | - Add statements keywords that use file contexts. | ||
50 | * Version 1 [26-Jan-2018, by Nibaldo González]: | 51 | * Version 1 [26-Jan-2018, by Nibaldo González]: | ||
51 | - Initial version. | 52 | - Initial version. | ||
52 | --> | 53 | --> | ||
53 | 54 | | |||
54 | <language name="SELinux File Contexts" | 55 | <language name="SELinux File Contexts" | ||
55 | version="3" | 56 | version="4" | ||
56 | kateversion="5.0" | 57 | kateversion="5.0" | ||
57 | section="Other" | 58 | section="Other" | ||
58 | extensions="*.fc;file_contexts;file_contexts_*;file_contexts.local;file_contexts.homedirs;file_contexts.template;homedir_template;property_contexts;service_contexts;hwservice_contexts;initial_sid_contexts;genfs_contexts;fs_use" | 59 | extensions="*.fc;file_contexts;file_contexts_*;file_contexts.local;file_contexts.homedirs;file_contexts.template;homedir_template;property_contexts;service_contexts;hwservice_contexts;initial_sid_contexts;genfs_contexts;fs_use" | ||
59 | priority="3" | 60 | priority="3" | ||
60 | mimetype="" | 61 | mimetype="" | ||
61 | author="Nibaldo González (nibgonz@gmail.com)" | 62 | author="Nibaldo González (nibgonz@gmail.com)" | ||
62 | license="MIT"> | 63 | license="MIT"> | ||
63 | 64 | | |||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |