mirror of
https://github.com/garabik/grc.git
synced 2024-11-10 21:26:52 +01:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
|
# Fields
|
|||
|
regexp=(?:IO\s)?\S+:\s
|
|||
|
colours=cyan
|
|||
|
-
|
|||
|
# Filename
|
|||
|
regexp=File: ‘(\S+)’
|
|||
|
colours=unchanged, bold
|
|||
|
-
|
|||
|
# File Type
|
|||
|
regexp=IO\sBlock:\s\d+\s+(.*)$
|
|||
|
colours=unchanged, bold green
|
|||
|
-
|
|||
|
# SELinux from conf.ls
|
|||
|
regexp=(\w+_u):(\w+_r):(\w+_t):(\w\d)
|
|||
|
colours=default,green,yellow,cyan,magenta
|
|||
|
-
|
|||
|
# Permission Numbers
|
|||
|
regexp=\((\d)(\d)(\d)(\d)\/
|
|||
|
colours=default,bold white,bright_green,yellow,bright_red
|
|||
|
-
|
|||
|
# -rwxrwxrwx ============================ from conf.ls
|
|||
|
# File Type
|
|||
|
regexp=(-|([bcCdDlMnpPs?]))(?=[-r][-w][-xsStT][-r][-w][-xsStT][-r][-w][-xsStT])
|
|||
|
colours=unchanged,unchanged,bold white
|
|||
|
-
|
|||
|
# owner rwx
|
|||
|
regexp=(?<=[-bcCdDlMnpPs?])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT][-r][-w][-xsStT])
|
|||
|
colours=unchanged,unchanged,bright_green,unchanged,bright_green,unchanged,bright_green
|
|||
|
-
|
|||
|
# group rwx
|
|||
|
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))(?=[-r][-w][-xsStT])
|
|||
|
colours=unchanged,unchanged,yellow,unchanged,yellow,unchanged,yellow
|
|||
|
-
|
|||
|
# other rwx
|
|||
|
regexp=(?<=[-bcCdDlMnpPs?][-r][-w][-xsStT][-r][-w][-xsStT])(-|(r))(-|(w))(-|([xsStT]))
|
|||
|
colours=unchanged,unchanged,bright_red,unchanged,bright_red,unchanged,bright_red
|
|||
|
-
|
|||
|
# sStT all
|
|||
|
regexp=(?<=[-bcCdDlMnpPs?])[-r][-w]([sStT])[-r][-w]([sStT])[-r][-w]([sStT])
|
|||
|
colours=unchanged,bold green,bold yellow, bold red
|