Skip to content

Commit c86ae1b

Browse files
new tool: ACL validator
1 parent 5fafb84 commit c86ae1b

File tree

11 files changed

+2237
-9
lines changed

11 files changed

+2237
-9
lines changed

.clang-tidy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Checks: >
2+
-*,
3+
clang-analyzer-*,
4+
-clang-analyzer-security.insecureAPI.*

TODO.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Needs replacing
2-
* OpenSSL (src/usr/lib/libssl.so.3)
3-
* Libcrypto (src/usr/lib/libcrypto.so.3)
4-
* Glibc (src/usr/lib/libc.so.6)
5-
* Linker (src/usr/lib64/ld-linux-x86-64.so.2)
2+
* OpenSSL (src/core/lib/libssl.so.3)
3+
* Libcrypto (src/core/lib/libcrypto.so.3)
4+
* Glibc (src/core/lib/libc.so.6)
5+
* Linker (src/core/lib64/ld-linux-x86-64.so.2)
66

77
# Needs making
8-
* Pandora package manafer (src/usr/bin/pandora)
9-
* Argus window manager (src/usr/bin/argus)
8+
* Pandora package manafer (src/core/bin/pandora)
9+
* Argus window manager (src/core/bin/argus)
1010
* Sound daemon (src/sbin/services/sound)
1111
* Login daemon (src/sbin/services/auth)
12-
* Config lang and library (src/usr/lib/libconf)
1312

1413
# Needs fixing
15-
* Hermes' file tab completion appends rubbish data
14+
## Hermes
15+
* Tab completion appends rubbish data
16+
* Add Segfault printing

src/conf/index.acl

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Registry {
2+
string url = "https://reg.example.com/index.acl";
3+
int priority = 100;
4+
bool require_signatures = false;
5+
string cache_policy = "ttl=3600";
6+
string metrics_url = "https://reg.example.com/metrics";
7+
/* mytool package */
8+
Package "mytool" {
9+
string[] versions = { "3.0.0", "2.4.1", "2.3.0" };
10+
string latest = "3.0.0";
11+
string pkg_base_url = "https://reg.example.com/pkgs/mytool";
12+
string[] tags = { "cli", "tooling" };
13+
14+
Version "3.0.0" {
15+
string manifest_url = "https://reg.example.com/pkgs/mytool/3.0.0/manifest.acl";
16+
string pkg_url = "https://reg.example.com/pkgs/mytool/3.0.0/mytool-3.0.0.pkg";
17+
string sha256 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
18+
bool deprecated = false;
19+
string provenance = "https://reg.example.com/pkgs/mytool/3.0.0/provenance.json";
20+
}
21+
22+
Version "2.4.1" {
23+
string manifest_url = "https://reg.example.com/pkgs/mytool/2.4.1/manifest.acl";
24+
string pkg_url = "https://reg.example.com/pkgs/mytool/2.4.1/mytool-2.4.1.pkg";
25+
string sha256 = "d2f4e5a1b3c4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0";
26+
bool deprecated = false;
27+
}
28+
29+
Version "2.3.0" {
30+
string manifest_url = "https://reg.example.com/pkgs/mytool/2.3.0/manifest.acl";
31+
string pkg_url = "https://reg.example.com/pkgs/mytool/2.3.0/mytool-2.3.0.pkg";
32+
string sha256 = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
33+
bool deprecated = true;
34+
}
35+
}
36+
37+
/* libfoo using base URL and a single version */
38+
Package "libfoo" {
39+
string[] versions = { "1.0.0" };
40+
string latest = "1.0.0";
41+
string pkg_base_url = "https://reg.example.com/pkgs/libfoo";
42+
43+
Version "1.0.0" {
44+
string manifest_url = "https://reg.example.com/pkgs/libfoo/1.0.0/manifest.acl";
45+
/* pkg_url omitted; client may construct it using pkg_base_url */
46+
string sha256 = "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc";
47+
}
48+
}
49+
}
50+

src/conf/pandora.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Pandora {
2+
Mirrors {
3+
mirror "default" {
4+
url = "https://github.com/atlaslinux/pandora";
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)