FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 03-12-2010, 08:43 AM
Ales Kozumplik
 
Default Make the kernel 'sshd' parameter work as expected (#572493)

Without the patch you can't just say 'sshd' you have to say 'sshd=anything',
even 'sshd=0' would work.

Together with 2d39422b083cb546e69f713752360915e0f55dd3 this fixes 572493 and
thus will be merged for rhel6.
---
flags.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/flags.py b/flags.py
index c5aa6d8..17635a4 100644
--- a/flags.py
+++ b/flags.py
@@ -92,13 +92,16 @@ class Flags:
# device is
self.__dict__['flags']['virtpconsole'] = None

- for x in ['selinux','sshd']:
+ for x in ['selinux']:
if self.__dict__['flags']['cmdline'].has_key(x):
if self.__dict__['flags']['cmdline'][x]:
self.__dict__['flags'][x] = 1
else:
self.__dict__['flags'][x] = 0

+ if self.__dict__['flags']['cmdline'].has_key("sshd"):
+ self.__dict__['flags']['sshd'] = 1
+
if self.__dict__['flags']['cmdline'].has_key("debug"):
self.__dict__['flags']['debug'] = self.__dict__['flags']['cmdline']['debug']

--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-23-2010, 11:21 AM
Ales Kozumplik
 
Default Make the kernel 'sshd' parameter work as expected (#572493)

Without the patch you can't just say 'sshd' you have to say 'sshd=anything',
even 'sshd=0' would work.

Together with 2d39422b083cb546e69f713752360915e0f55dd3 this fixes 572493 and
thus will be merged for rhel6.
---
flags.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/flags.py b/flags.py
index c5aa6d8..e5e08aa 100644
--- a/flags.py
+++ b/flags.py
@@ -64,6 +64,12 @@ class Flags:
cmdlineDict[key] = val

return cmdlineDict
+
+ def decideCmdlineFlag(self, flag):
+ if self.__dict__['flags']['cmdline'].has_key(flag)
+ and not self.__dict__['flags']['cmdline'].has_key("no" + flag)
+ and self.__dict__['flags']['cmdline'][flag] != "0":
+ self.__dict__['flags'][flag] = 1

def __init__(self):
self.__dict__['flags'] = {}
@@ -92,13 +98,15 @@ class Flags:
# device is
self.__dict__['flags']['virtpconsole'] = None

- for x in ['selinux','sshd']:
+ for x in ['selinux']:
if self.__dict__['flags']['cmdline'].has_key(x):
if self.__dict__['flags']['cmdline'][x]:
self.__dict__['flags'][x] = 1
else:
self.__dict__['flags'][x] = 0

+ self.decideCmdlineFlag('sshd')
+
if self.__dict__['flags']['cmdline'].has_key("debug"):
self.__dict__['flags']['debug'] = self.__dict__['flags']['cmdline']['debug']

--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org