Skip to content

Commit fb4e5d0

Browse files
committed
tlshd: Set up new /etc/tlshd/tags.d directory
For "make install", create the directory that contains the files where TLS session tags definitions reside. Introduce a YAML file containing example TLS session tag definitions to help document this new feature. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 4e40f64 commit fb4e5d0

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

src/tlshd/etc/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
#
1818

1919
tlshdconfigdir = $(sysconfdir)/tlshd
20+
tlshdtagsdir = $(tlshdconfigdir)/tags.d
2021

2122
tlshdconfig_DATA = config
23+
tlshdtags_DATA = tags.example
2224

2325
man5_MANS = tlshd.conf.man
2426
EXTRA_DIST = $(man5_MANS)
@@ -27,3 +29,4 @@ MAINTAINERCLEANFILES = Makefile.in
2729

2830
install-exec-hook:
2931
mkdir -p $(DESTDIR)$(tlshdconfigdir)
32+
mkdir -p $(DESTDIR)$(tlshdtagsdir)

src/tlshd/etc/tags.example

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
filters:
3+
monsters-university:
4+
field: "issuer"
5+
type: "wildcard"
6+
expression: "*,O=Monsters University,*"
7+
fear-tech:
8+
field: "issuer"
9+
type: "wildcard"
10+
expression: "*,O=Fear Technology Institute,*"
11+
school-scaring:
12+
field: "subject"
13+
type: "wildcard"
14+
expression: "*,OU=School of Scaring,*"
15+
school-can-design:
16+
field: "subject"
17+
type: "wildcard"
18+
expression: "*,OU=School of Scream Can Design,*"
19+
sorority-hss:
20+
field: "subject"
21+
type: "wildcard"
22+
expression: "*,OU=Eta Hiss Hiss,*"
23+
fraternity-ror:
24+
field: "subject"
25+
type: "wildcard"
26+
expression: "*,OU=Roar Omega Roar,*"
27+
fraternity-ok:
28+
field: "subject"
29+
type: "wildcard"
30+
expression: "*,OU=Oozma Kappa,*"
31+
valid-keyusage:
32+
field: "keyUsage"
33+
type: "list"
34+
expression:
35+
- "digitalSignature"
36+
- "nonRepudiation"
37+
38+
tags:
39+
ror-mu-chapter:
40+
filter:
41+
- "monsters-univerity"
42+
- "fraternity-ror"
43+
- "valid-keyusage"
44+
ror-ft-chapter:
45+
filter:
46+
- "fear-tech"
47+
- "fraternity-ror"
48+
- "valid-keyusage"
49+
can-design-student-materials:
50+
filter:
51+
- "school-can-design"

0 commit comments

Comments
 (0)