<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>@John as suggested I used the configparser module and as it turns out we do have a problem with using it. Actually in the config files at present the default section is represented by an empty string (for e.g. in /etc/apparmor/easyprof.conf ), but configparser needs a none empty section header and hence raises an Error for the same.<br>
<br></div>I think we should change the format and hence default section headers should be something like [DEFAULT] instead of an empty string.<br><br></div>Also, the order in which the config parser writes to output file is random (expected of a dictionary) and not sorted.<br>
<br></div><div><br></div>Regards,<br><br></div>Kshitij Gupta<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 7, 2013 at 12:17 AM, Kshitij Gupta <span dir="ltr"><<a href="mailto:kgupta8592@gmail.com" target="_blank">kgupta8592@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I've setup the wiki page for the project [<a href="http://wiki.apparmor.net/index.php/Profile_Management_Tools" target="_blank">http://wiki.apparmor.net/index.php/Profile_Management_Tools</a>], it'd be nice if some-one could just scroll through the page. I'll update the blog link once, I have an initial post ready for the project.<br>
<br></div>@Christian please add your profile link with your name and maybe your IRC nick too. <br><br></div><div>@John , @Christian also you can fill out the schedule for weekly meetings.<br></div><div><br></div>The updated config.py using the ConfigParser module will also be updated in a few hours.<br>
<br></div>Regards,<br><br></div>Kshitij Gupta<span class="HOEnZb"><font color="#888888"><br>-- <br><pre>The trouble with the world is that the stupid are cocksure and the
intelligent are full of doubt.
Bertrand Russell<br>-- <br></pre></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 12:54 AM, Kshitij Gupta <span dir="ltr"><<a href="mailto:kgupta8592@gmail.com" target="_blank">kgupta8592@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br><div><div class="gmail_extra"><br><div class="gmail_quote"><div>On Thu, Jun 6, 2013 at 12:12 AM, Christian Boltz <span dir="ltr"><<a href="mailto:apparmor@cboltz.de" target="_blank">apparmor@cboltz.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello,<br>
<br>
Am Mittwoch, 5. Juni 2013 schrieb Kshitij Gupta:<br>
</div><div>> @Christian First off, what mail client do you use? I'd like to be able<br>
> to have my replies like you all do.<br>
<br>
</div>Nearly every mail client supports this style to reply (even Outlook ;-)<br>
The main "trick" is to insert your reply in the middle of the quoted<br>
mail instead of typing at the first line.<br>
<br>
I'm using KMail, but the current version has some known issues caused by<br>
the switch to Akonadi and Nepomuk. If you want to use KMail, make sure<br>
to have the latest KDE version to see less bugs ;-)<br>
<br>
Thunderbird might be another option. It's the mail client I usually<br>
recommend to windows users ;-) (because they can't use KMail)<br>
<div><br></div></blockquote></div><div>Ahh, that trick's pretty neat. I'm on GNOME though I have the KMail app. I'll give it a shot. :-) Meanwhile, lets see if the "trick" works on Gmail. ;-)<br>
<br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
> Back to topic at hand, the config wrapper has two additional functions<br>
> besides the read and write (which also sets the permissions for the<br>
> profiles). So, for the time being I'll keep redo the config file with<br>
> the configprofiler module and if later on I can rather easily do-away<br>
> with the config library file if its not needed (though I'll note down<br>
> this point because I might forget it later on).<br>
<br>
</div>OK, additional functions are a good argument for a wrapper.<br>
<div> </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
> Okay, I'll go through the roadmap once again and then setup the<br>
> wikipage for my roadmap. (Any naming ideas for the wikipage?)<br>
<br>
</div>Why not just something simple like "Profile generation tools"?<br>
That said, the page name is not too important - and we can still<br>
move/rename the page if we find a better name ;-)<br>
<div><br>
> Also, a<br>
> new name for the library tools package (If we're moving away from<br>
> Immunix)? ;-)<br>
<br>
</div>I'd just use "AppArmor".<br>
<div><br></div></blockquote></div><div>Okay, I'll have some content from my proposal moved over to a wiki page as soon as possible. <br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
> As, for the code review John went into the docstrings and comments<br>
> which I quite agree too, since Python code in general is pretty<br>
> readable in general so a few explanatory comments should be<br>
> sufficient. But I suppose a few lines of docstring will not harm (and<br>
<br>
</div>Comments and documentation never harm, and having a short summary of<br>
what a function does and how to call it is always helpful.<br>
<br>
There's nothing wrong with reading the source, but for a quick overview<br>
a good comment is quite helpful ;-)<br>
<div><br>
> will be useful when importing the modules, since AppArmor.py will be<br>
> pretty long).<br>
<br>
</div>That sounds like you might want to split it into several files ;-)<br>
<div><br></div></blockquote></div><div>That is going to be the hardest part I imagine, so breaking down that file reasonably is a good idea. I plan to get started with it by the next week. (Had been off the work for the last couple of days)<br>
</div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
> I'll take that the coding style for those few lines was<br>
> okay to everyone? ;-)<br>
<br>
</div>Yes :-)<br>
<div><br>
> I think I love the blogpost about the weekly progress idea, so<br>
> hopefully I'll try to follow that (Does anyone want me to setup a new<br>
> blog for the sole-purpose?).<br>
<br>
</div>Just use your existing blog - it will give you some additional readers,<br>
and if you are lucky, they'll stay for more than the GSoC period.<br>
<div><br></div></blockquote></div><div> Yeah, I could use some readers and get regular with blogging. :-)<br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
> Looks good enough to me, I'll setup my IRC client for that. We have a<br>
> variety of timezones (mine being UTC+5:30), though gladly I don't<br>
> quite have issues with time since, I spend much of my day (and night)<br>
> near my computer. :-D<br>
<br>
</div>I'd say we can probably meet in what you call "night" and I call<br>
"evening" ;-)<br>
</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The time of the monthly AppArmor meetings is 20:00 UTC, which might be a<br>
bit too late for you (it would start at 1:30 in your timezone if my<br>
calculation is right).<br>
<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you like IRC discussions after midnight, we can do the weekly<br>
meetings at 20:00 UTC, but 18:30 or 19:00 UTC would also be possible for<br>
me. Would that work better for you?<br>
@John: what about you?<br>
<div><br></div></blockquote></div><div>For our weekly meetings, I'm perfectly okay with anything around 19:00 since I dont expect the discussions to last over 2-3 hours, which isnt that late given my routine. <br>
</div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
> I'll try to be present in the next meeting. BTW, anything on the<br>
> agenda requiring my presence?<br>
<br>
</div>Not yet ;-) but often we discuss more things than initially planned, and<br>
those discussions that typically start with a "BTW" can be quite<br>
interesting ;-)<br>
<div><br></div></blockquote></div><div>@John no, you dont need to move the schedule for the AppArmor meeting, I'll be available at that time. :-)<br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
> @Christian Sorry for the sig, I wasnt aware of the extra space and I'm<br>
<br>
</div>No problem ;-)<br>
<div><br>
> glad you liked my first sig. :-) I'll probably build myself a<br>
> collection of those too.<br>
<br>
</div>If you are interested in the scripts I'm using:<br>
<a href="http://cboltz.de/en/linux/zufallssig/" target="_blank">http://cboltz.de/en/linux/zufallssig/</a><br>
Nothing magic, but it can save you from re-inventing the wheel ;-)<br></blockquote></div><div>Actually, I was gonna script that myself. But I'll probably I'll put that off until later and use that. :-) <br><br></div>
<div>
Regards,<br><br></div><div>Kshitij Gupta<br></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Regards,<br>
<br>
Christian Boltz </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><font color="#888888">--<br>
> bei Bernd ist alles Zufall.<br>
Glaubst Du nicht, dass da Kristallkugel.pl zugeschlagen hat? Ich bin mir<br>
sicher, dass Bernd sowas auf seinem Rechner hat ;-)<br>
[> Michael Schulz u. Manfred Tremmel über Bernd Brodesser in suse-linux]<br>
</font></span><div><div><br>
<br>
--<br>
AppArmor mailing list<br>
<a href="mailto:AppArmor@lists.ubuntu.com" target="_blank">AppArmor@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/apparmor" target="_blank">https://lists.ubuntu.com/mailman/listinfo/apparmor</a><br>
</div></div></blockquote></div></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>