Chris PeBenito
eed0e12445
Merge pull request #96 from pebenito/master
...
py.typed: Fix incorrect location in repo.
2023-04-19 08:42:53 -04:00
Chris PeBenito
574a78dbf9
py.typed: Fix incorrect location in repo.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-19 08:36:21 -04:00
Chris PeBenito
4f0ab0a7b0
Merge pull request #95 from pebenito/gh-install-test
...
Various GitHub actions refinements
2023-04-18 16:45:17 -04:00
Chris PeBenito
ca1ac0369f
tests.yml: Remove unnecessary CFLAGS sed.
...
No longer necessary since -Werror is no longer used.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-18 16:22:23 -04:00
Chris PeBenito
d67d7071e4
tests.yml: Add package caching.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-18 16:22:23 -04:00
Chris PeBenito
3b0c2095dc
tests.yml: Move environment variables to top level env block.
...
Unfortunately GitHub actions do not support building one variable from another
in this block, so the values are fully defined.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-18 16:22:23 -04:00
Chris PeBenito
395e7783eb
tests.yml: Add test for installing via pip.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-18 16:15:01 -04:00
Chris PeBenito
676d22e6e6
Merge pull request #94 from pebenito/py-typed
...
Install policyrep typing.
2023-04-14 10:42:06 -04:00
Chris PeBenito
1c4666d713
Install policyrep typing.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-14 10:22:00 -04:00
Chris PeBenito
59d82b0cf6
Merge pull request #92 from uniontech-lilinjie/master
...
fix typo
2023-04-04 08:27:30 -04:00
lilinjie
665a69941d
fix typo
...
Signed-off-by: lilinjie <lilinjie@uniontech.com>
2023-04-04 13:51:30 +08:00
Chris PeBenito
1f0d28bfe2
Merge pull request #91 from pebenito/neverallow
...
Disable/remove neverallow options in frontends.
2023-04-03 11:47:52 -04:00
Chris PeBenito
06335957b7
Disable/remove neverallow options in frontends.
...
These rules are not available in the binary policy. Keep library support in
case this changes in the future.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-03 10:26:49 -04:00
Chris PeBenito
dee89793f8
Merge pull request #90 from pebenito/misc
...
Various updates.
2023-03-30 08:51:14 -04:00
Chris PeBenito
6df34dc44d
Move pylint config to pyproject.toml.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-27 16:14:55 -04:00
Chris PeBenito
9d45d1e3c2
Move mypy configuration to pyproject.toml.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-27 14:32:23 -04:00
Chris PeBenito
3bfffa7df2
Move coverage config to pyproject.toml.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-27 14:29:52 -04:00
Chris PeBenito
865f523b1f
Set warnings filter on CLI programs.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-27 09:30:26 -04:00
Chris PeBenito
5943451017
mypy: Add types-setuptools in tox.ini.
...
Remove extra ignores in .mypy.ini.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-27 09:18:01 -04:00
Chris PeBenito
878059debf
README: Minor formatting refinements.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-27 09:16:53 -04:00
Chris PeBenito
fbce6e8324
Merge pull request #89 from pebenito/namedtuple-to-dataclass
...
diff/permmap: Replace named tuples with dataclasses.
2023-03-24 11:21:54 -04:00
Chris PeBenito
02e70efcb0
RuleWeight: Change to dataclass.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-24 11:16:01 -04:00
Chris PeBenito
450f94875a
diff: Replace named tuples with dataclasses.
...
Add backwards compatibility for tuple usage.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-24 10:53:13 -04:00
Chris PeBenito
0abf995706
Merge pull request #88 from pebenito/pytest
...
Change unit test runner to pytest.
2023-03-23 13:35:52 -04:00
Chris PeBenito
3d5fcdd6cf
tests.yml: Enable coverage test.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-23 10:24:07 -04:00
Chris PeBenito
729daacc57
AVRuleTest: Fix warning in regex escape sequence.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-23 10:10:53 -04:00
Chris PeBenito
2676ea9152
.pylintrc: Update options to current release.
...
Remove deprecated options and fully specify the overgeneral-exceptions
option.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-23 10:05:01 -04:00
Chris PeBenito
85cac110be
Change test runner to pytest.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-23 10:05:01 -04:00
Chris PeBenito
a75656b891
Rename unit test files for pytest detection.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-03-23 10:05:01 -04:00
Chris PeBenito
d491963133
Merge pull request #81 from pebenito/nx-dataclasses
...
Convert data structures to Python dataclasses where relevant.
2023-02-07 11:47:14 -05:00
Chris PeBenito
ec0bafe6bb
dta, infoflow: Move __getitem__() to common mixin.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-07 10:55:30 -05:00
Chris PeBenito
ebbfef2482
dta, infoflow: Use dataclasses where relevant.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-07 10:05:44 -05:00
Chris PeBenito
51a3e3aa98
tox.ini: Add dataclasses package for Python 3.6.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-07 10:05:44 -05:00
Chris PeBenito
d8a9c33337
README: Add dataclasses package for Python 3.6.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-07 10:05:44 -05:00
Chris PeBenito
4fb753e31a
Merge pull request #84 from pebenito/refine-descriptors
...
Refine descriptors
2023-02-07 09:28:56 -05:00
Chris PeBenito
575ddbff59
Fix typing issue from CI tests.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-07 09:22:48 -05:00
Chris PeBenito
d43bbdcd4a
DiffResultDescriptor: Save data to the object instead of in the descriptor.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-07 09:03:33 -05:00
Chris PeBenito
4255600044
CriteriaDescriptor: Store data in obj instead of local instances.
...
This obviates the need of a instances dict.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-06 15:34:56 -05:00
Chris PeBenito
967e862ab1
NetworkXGraphEdgeDescriptor: Use __set_name__.
...
Still need the __init__ use to handle a single case of overriding the name.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-06 14:52:46 -05:00
Chris PeBenito
2d1de939ba
PermissionMapDescriptor: Use __set_name__.
...
Then the attribute name does not need to be passed to __init__.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-06 14:37:46 -05:00
Chris PeBenito
83bac2e6a4
Merge pull request #83 from cgzones/perm_map
...
Update permission map
2023-02-03 14:51:32 -05:00
Christian Göttsche
1b364e518f
Update permission map
...
* Add permission cmd to class io_uring (added in Linux 6.0 and 5.19.9)
* Add class user_namespace (added in Linux 6.1)
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2023-02-03 20:37:14 +01:00
Chris PeBenito
4bedce8811
Merge pull request #80 from pebenito/ci-fixes
...
tests.yml: Pin ubuntu-20.04 to keep appropriate Python versions.
2023-02-02 16:56:23 -05:00
Chris PeBenito
fea650045d
dta, infoflow: Replace nx.info() function.
...
This is a deprecated function and was removed in NetworkX 3.0.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-02 16:50:44 -05:00
Chris PeBenito
42a75ad753
tests.yml: Pin ubuntu-20.04 to keep appropriate Python versions.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-02-02 16:31:22 -05:00
Chris PeBenito
a66c264b2b
Merge pull request #79 from pebenito/ci-fixes
...
Update CI tests and fix new issues.
2022-11-30 15:19:01 -05:00
Chris PeBenito
c0d0f0d3b8
tests.yml: Add Python 3.10 and 3.11 CI tests.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2022-11-30 15:02:09 -05:00
Chris PeBenito
fc0aadf3ae
tests.yml: Update GitHub actions versions.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2022-11-30 14:52:50 -05:00
Chris PeBenito
f1e0035029
CriteriaDescriptor: Fix typing for enum_class keyword parameter.
...
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2022-11-30 14:43:41 -05:00
Chris PeBenito
ee21412234
policyrep.pyi: Remove incorrect attribute overrides.
...
This fixes mypy issues.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2022-11-30 14:26:49 -05:00