From f6a21742b2531f5dfd0fa68400848ca4314f972f Mon Sep 17 00:00:00 2001 From: Vit Mojzis Date: Mon, 6 Dec 2021 12:14:04 +0100 Subject: [PATCH] Fix typos in --help, man pages and developer's guide Signed-off-by: Vit Mojzis --- TODO | 2 +- doc/sealert.8 | 2 +- src/config.py.in | 2 +- src/sealert | 2 +- src/setroubleshoot/server.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/TODO b/framework/TODO index 6c2f375..25072ea 100644 --- a/framework/TODO +++ b/framework/TODO @@ -22,7 +22,7 @@ return plain text (to be used for plaintext email and writing to stdout). (John) Add log file scanning support (I'm currently working on this). -We could use a better parser for AVC's in log file or other "stream", +We could use a better parser for AVCs in log file or other "stream", should work by accepting data via a feed() method and invoke a callback when it finds an AVC returning an AVC class and a range (start,end) where it was located (question: should the range be line diff --git a/framework/doc/sealert.8 b/framework/doc/sealert.8 index 89f4dff..d3e81e3 100644 --- a/framework/doc/sealert.8 +++ b/framework/doc/sealert.8 @@ -102,7 +102,7 @@ Start sealert without dbus service as stand alone app Lookup alert by id, if id is wildcard * then return all alerts .TP .B \-a \-\-analyze file -Scan a log file, analyze its AVC's +Scan a log file, analyze its AVCs .TP .B \-u \-\-user logon as user diff --git a/framework/src/config.py.in b/framework/src/config.py.in index cbb0542..daf9a68 100644 --- a/framework/src/config.py.in +++ b/framework/src/config.py.in @@ -184,7 +184,7 @@ the alert's last seen date will be purged first. Zero implies no limit''', 'max_alert_age': { 'value': '', 'description' : ''' -Purge any alerts whose age based on it's last seen date exceeds this threshold. +Purge any alerts whose age based on its last seen date exceeds this threshold. Age may be specified as a sequence of integer unit pairs. Units may be one of year,month,week,day,hour,minute,second and may optionally be plural. Example: '2 weeks 1 day' sets the threshold at 15 days. diff --git a/framework/src/sealert b/framework/src/sealert index bae0c81..2663a21 100755 --- a/framework/src/sealert +++ b/framework/src/sealert @@ -598,7 +598,7 @@ if __name__ == '__main__': parser.add_option("-l", "--lookupid", dest="lookupid", default=False, help="Lookup alert by id, id may be wildcard * to lookup all alerts") parser.add_option("-a", "--analyze", dest="analyze", default=False, - help="Scan a log file, analyze it's AVC's", metavar="FILE") + help="Scan a log file, analyze its AVCs", metavar="FILE") parser.add_option("-u", "--user", dest="user", default=False, help="logon user name") parser.add_option("-p", "--password", dest="password", default=False, diff --git a/framework/src/setroubleshoot/server.py b/framework/src/setroubleshoot/server.py index aef0346..771ea15 100755 --- a/framework/src/setroubleshoot/server.py +++ b/framework/src/setroubleshoot/server.py @@ -764,7 +764,7 @@ def RunFaultServer(timeout=10): try: # FIXME: should this be using our logging objects in log.py? # currently syslog is only used for putting an alert into - # the syslog with it's id + # the syslog with its id global pkg_name syslog.openlog(pkg_name) -- 2.30.2