Commit graph

1892 commits

Author SHA1 Message Date
Andreas Gruenbacher
461273d456 Add -i option for in-place editing. 2007-04-10 19:32:10 +00:00
Andreas Gruenbacher
f55c928fbe Recognize quoted pathnames as well. 2007-04-10 18:16:03 +00:00
Andreas Gruenbacher
e3e5528dbc Add sketchy profile conversion script. 2007-04-10 14:45:09 +00:00
Steve Beattie
feb167c51a Move some common manpage cleanup to common/Make.rules (and clean up
pod2html tmpfiles). Also mark manpages to be ignored by svn.
2007-04-03 20:12:16 +00:00
Steve Beattie
60f2312372 Subject: Add manpages to utils package.
Move the autodep(8), complain(8), enforce(8), logprof(8), genprof(8),
unconfined(8), logprof.conf(5), and apparmor_status(8) manpages, along
with their aa- form symlinks, to the utils package.
2007-04-03 19:13:35 +00:00
Jesse Michael
3d84f865c9 The version of perl included with Ubuntu's Feisty release is generating
extra perl warnings about using an uninitialized value in a pattern
match when the user uses the arrow keys to move up and down in the option
list when asking how to handle path access rules.  This makes sure the
variables used in m// operations are always defined.
2007-03-30 16:04:04 +00:00
Jesse Michael
33a58a858d keep logprof/genprof from spinning forever if the very last line in the
logfile is "PERMITTING x access to ..."
2007-03-29 16:39:28 +00:00
Steve Beattie
f5109ad203 This patch makes the utils tools consistent with the initscript as to
which sets of files they ignore (rpm backups, dotfiles, and emacs
backups). It moves the tests into a common function so that
modifications only need to occur in one location.
2007-03-23 18:52:22 +00:00
Jesse Michael
360ffc756e re-enable warnings for the utils perl modules and fix a couple initial
problems exposed by that.  there are likely to be more fixes coming.
2007-03-21 16:49:39 +00:00
Jesse Michael
e5ac6de656 fix typo in fork tracking code that could result in applications that
are currently running while logprof/genprof is used being left in the 
null-complain profile instead of being moved to the profile the user
has just specified.  

the profiles are updated correctly though, so if the application is 
stopped and restarted, it will be confined by the appropriate profile.
2007-03-21 15:54:57 +00:00
Jesse Michael
d8ae032328 used perltidy to clean up the formatting for the perl scripts in the
utils package and manually fixed some places where perltidy's
reformatting made it harder to read.  the options used were--

-i=4    # 4-space indentation
-l=0    # unlimited line length (for now)
-pt=2   # slightly tightened parens
-ce     # cuddled elses
-nolq   # don't outdent long quotes
-nsfs   # don't add spaces in front of semi-colons in for ( ) statements
-isbc   # only indent block comments that have whitespace in front of them
-otr    # don't place a break between a comma and an opening brace

the code will be refactored to make it possible to switch to using 
80-column line-breaks without resorting to really nasty formatting 
constructs.
2007-03-20 21:58:38 +00:00
Jesse Michael
7780d79c8d remove last vestiges of Immunix::Ycp in deference to official ycp module 2007-03-19 02:29:47 +00:00
Jesse Michael
c878e09840 fixes for bz #179656 - missing localization in subdomain.pm 2007-03-18 20:25:25 +00:00
Jesse Michael
5b2dd25bb1 revert broken commit. i'll check in the discrete fixes from the last checkin
in a second and then follow those up with the corrected cleanup fixes.
2007-03-18 19:44:57 +00:00
Dominic Reynolds
8fb0f8f3d1 Fixes for BZ 179656, 233768. Add new capabilities rating to sverity.db,
localization fixes in SubDomain.pm and Reports.pm.
2007-03-12 14:12:40 +00:00
Steve Beattie
ee85cc9f24 Add a chomp statement to prevent blank lines being emitted to
aa-eventd's logfile. Clean up some trailing spaces in the file.
2007-01-17 12:32:15 +00:00
Steve Beattie
51a676b3b4 This patch modifies the aa-eventd daemon to use the Date::Parse module
(TimeDate) package for parsing dates and fall back to using Date::Manip
if Date::Parse isn't available -- Date::Manip is more commonly available,
but is written solely in perl and is more general-purpose and heavyweight
than Date::Parse.

The DateTime package (datetime.perl.org) doesn't suffice as it it
either uses Date::Manip internally and DateTime::Format::Strptime also
isn't commonly available. Given that our regex for identifying dates
in syslog is pretty static; POSIX::strptime (implementing strptime(3))
functionality would probably be the best way to go -- except that perl's
POSIX doesn't include strptime and POSIX::strptime is another not commonly
available package. Sigh.
2007-01-17 12:22:31 +00:00
Steve Beattie
7964feb031 The audit user space daemon has to be configured specially to include
the apparmor defined event numbers. genprof, logprof, and aa-eventd
should all still function correctly even when the audit daemon is not
configured correctly. This commit addresses that as well as adding the
needed dependency on perl-gettext.
2007-01-17 12:00:43 +00:00
David J Drewelow
277a4e1c24 Change to improve i18n string match. 2007-01-03 10:44:01 +00:00
Steve Beattie
1fa3f61c6a Fix from PLD/Arkadiusz Miskiewicz <arekm@maven.pl> to mark ksh to not be
profiled.
2006-12-12 11:05:46 +00:00
Dominic Reynolds
ce0b104088 More translation updates. 2006-11-20 04:49:16 +00:00
Dominic Reynolds
71a345d97a Updates from translation team. 2006-11-19 16:45:23 +00:00
Steve Beattie
4f16824434 This patch makes it so that translations added to po/ directories are
automatically added to the set of languages to be built and installed
unless they are explicitly added to the set of disabled translations.
This eliminates the need to manually add a lang to the Makefile when a
new translation is submitted (svn add will still be necessary).
2006-11-15 09:22:15 +00:00
Seth Arnold
581713895d remove language dirs from spec 2006-11-14 13:08:06 +00:00
Seth Arnold
1d58158134 remove a bunch of duplicated languages; remove pig latin; remove them from the Makefile 2006-11-14 13:06:59 +00:00
Seth Arnold
27df0a157c Bug 215207 - apparmor-profiles: lib-ld missing in the profile -- now that the apparmor-profiles package has removed the ld.so profiles, genprof/autodep shouldn't be automatically providing 'px' access 2006-11-14 11:46:50 +00:00
Seth Arnold
8b7c5d3369 remove half-baked code; this no longer seems like the right approach for a profile lint in the long run 2006-11-13 11:52:36 +00:00
David J Drewelow
e44e921e4f new translation files 2006-11-09 08:16:43 +00:00
David J Drewelow
8834b1cd49 replaced generic values that were left in the header 2006-11-09 08:13:38 +00:00
David J Drewelow
5e3729de07 added new .po files to LANG 2006-11-08 10:53:08 +00:00
David J Drewelow
6879c5b32d updated files from lcn repository 2006-11-08 10:37:40 +00:00
Steve Beattie
af33afe8f7 Convert the rest of the packages to symlinking in the common directory
so that 'make dist' will work.
2006-11-04 21:34:47 +00:00
Dominic Reynolds
2ea2871282 Removed 2006-10-06 20:09:45 +00:00
Dominic Reynolds
1fe7e92955 Added checks for profile syntax and error dialogs in the yastui. 2006-10-05 21:29:22 +00:00
Dominic Reynolds
6393f224e5 Small text change to celanup spaces. The xgettext claimed the line was
not ascii so wouldn't regenerate the pot file.
2006-09-22 16:33:27 +00:00
Steve Beattie
1cd7fe23d4 [https://bugzilla.novell.com/show_bug.cgi?id=129516]
Relicense file to GPL (don't know why it wasn't caught originally). Made
it look in the right location, but doesn't appear to function -- I don't
know if that's due to language changes or if it ever worked. Seth Arnold
will need to comment.
2006-09-11 21:46:44 +00:00
Dominic Reynolds
97593fb21b Changes to support new language features - exec modifiers Ux|Px and m
bit for mmap PROT_EXEC.
2006-08-04 16:38:22 +00:00
Seth Arnold
e70039f3d9 forgot to set the svn:keywords on the file. oops. 2006-05-15 17:40:24 +00:00
Steve Beattie
e3a5c27679 Remove some archaic cvsignore files. 2006-04-13 21:16:09 +00:00
Steve Beattie
09f7264743 Set svn:keywords attributes on files, modify makefiles to point at new
common/ location after converting to novell forge svn repo.
2006-04-12 19:31:08 +00:00
Dominic Reynolds
93addb5b04 Rename changes subdomain -> apparmor in error messages 2006-04-11 22:26:05 +00:00
Steve Beattie
6d3e74907d Import the rest of the core functionality of the internal apparmor
development tree (trunk branch). From svn repo version 6381.
2006-04-11 21:52:54 +00:00