Commit Graph

1223 Commits

Author SHA1 Message Date
Chris PeBenito
0c1e581141
Merge pull request #100 from pebenito/misc
tox.ini: Change environments to use "python" instead of "py".
2023-05-12 14:23:40 -04:00
Chris PeBenito
1d79493ba1 tox.ini: Change environments to use "python" instead of "py".
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-05-12 14:17:35 -04:00
Chris PeBenito
985c9e50f7
Merge pull request #97 from bachradsusi/sediff
Disable/remove neverallow options in sediff.
2023-05-12 13:27:56 -04:00
Chris PeBenito
3101dc1f2c
Merge pull request #98 from vmojzis/man
Improve man pages
2023-05-12 12:42:19 -04:00
Vit Mojzis
f53146db6a Improve man pages
- Add missing parameters
- Add examples
- Fix typos

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2023-05-11 18:38:21 +02:00
Petr Lautrbach
b6b7a20618 Disable/remove neverallow options in sediff.
Apply change from commit 06335957b7 ("Disable/remove neverallow
options in frontends.") to sediff

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
2023-05-10 17:34:31 +02:00
Chris PeBenito
77e64f423a Update ChangeLog for 4.4.2 release.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-19 10:30:35 -04:00
Chris PeBenito
47321c186f Changelog: Update for 4.4.1 release.
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2023-04-19 10:30:22 -04:00
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