subject /usr/bin/pythonX.X needed in policy? Not really!
Posted: Mon Feb 01, 2016 9:50 am
Title (added "Not really!" at 2016-02-01 17:59+01:00):
subject /usr/bin/pythonX.X needed in policy? Not really!
(and made shorter, as was too long)
I think I need to debug Getmail, to be able to see if I can decrypt the SSL session when it fetches mail from my IMAPS or POP3S mail hubs (at my hoster and at my providers, respectively).
Pls. see on Gentoo Forums:
How to Decrypt Getmail IMAPS/POP3S sessions?
https://forums.gentoo.org/viewtopic-t-1 ... ml#7874704
In any elders are around, I have deliberately llinked to the second post of mine that I posted there, because there is the Grsecurity permission issue for me to solve.
Reproducing that part here, for more clarity and more ease:
And the python is started at the command line. I will be starting it (probably after I set... I know this by heart by now:
and start grsec learning), in the fashion explained on pages like:
https://marc.info/?l=getmail&m=144502725016279&w=2
because that appears to give complete debugging in Getmail.
I am a little perplexed, because this is the biggest change so far, in my gradm policy.
And so I'm posting this if there be any advanced users to advise me on this.
I do think that the grsec learning is in the order of the day, so I will be going that way. I have such a backup system in place that I am able to roll back very easily my complete system, so it's not worth for me to wait but rather give it a try even if I need to roll back later.
Will be back to either see if any advice was given, or post my new policy.
Regards!.
Miroslav Rovis
http://www.CroatiaFidelis.hr
subject /usr/bin/pythonX.X needed in policy? Not really!
(and made shorter, as was too long)
I think I need to debug Getmail, to be able to see if I can decrypt the SSL session when it fetches mail from my IMAPS or POP3S mail hubs (at my hoster and at my providers, respectively).
Pls. see on Gentoo Forums:
How to Decrypt Getmail IMAPS/POP3S sessions?
https://forums.gentoo.org/viewtopic-t-1 ... ml#7874704
In any elders are around, I have deliberately llinked to the second post of mine that I posted there, because there is the Grsecurity permission issue for me to solve.
Reproducing that part here, for more clarity and more ease:
- Code: Select all
Feb 1 06:25:45 g0n kernel: [353942.599063] grsec: (miro:U:/) exec of /usr/bin/python2.7 (/usr/bin/python ) by /usr/bin/python2.7[python:27668] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:3163] uid/euid:1000/1000 gid/egid:1000/1000
...
Feb 1 06:26:38 g0n kernel: [353995.006352] grsec: (miro:U:/) denied socket(inet,stream,tcp) by /usr/bin/python2.7[python:27668] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:3163] uid/euid:1000/1000 gid/egid:1000/1000
And the python is started at the command line. I will be starting it (probably after I set... I know this by heart by now:
- Code: Select all
subject /usr/bin/python2.7 ol {
/ h
-CAP_ALL
bind disabled
connect disabled
}
and start grsec learning), in the fashion explained on pages like:
https://marc.info/?l=getmail&m=144502725016279&w=2
- Code: Select all
$ python2 -m pdb $(which getmail)
(Pdb) import imaplib
(Pdb) imaplib.Debug = 4
(Pdb) c
because that appears to give complete debugging in Getmail.
I am a little perplexed, because this is the biggest change so far, in my gradm policy.
And so I'm posting this if there be any advanced users to advise me on this.
I do think that the grsec learning is in the order of the day, so I will be going that way. I have such a backup system in place that I am able to roll back very easily my complete system, so it's not worth for me to wait but rather give it a try even if I need to roll back later.
Will be back to either see if any advice was given, or post my new policy.
Regards!.
Miroslav Rovis
http://www.CroatiaFidelis.hr