Lines 121-127
Link Here
|
121 |
"/opt/thinlinc/libexec/tl-mount-personal"]: |
121 |
"/opt/thinlinc/libexec/tl-mount-personal"]: |
122 |
mode = 04755 |
122 |
mode = 04755 |
123 |
if f in ["/opt/thinlinc/libexec/functions", |
123 |
if f in ["/opt/thinlinc/libexec/functions", |
124 |
"/opt/thinlinc/libexec/syscheck.sh"]: |
124 |
"/opt/thinlinc/libexec/syscheck.sh", |
|
|
125 |
"/opt/thinlinc/libexec/tl-run-xstartup.d", |
126 |
"/opt/thinlinc/libexec/tl-run-xlogout.d"]: |
125 |
mode = 0644 |
127 |
mode = 0644 |
126 |
self.assertEqual(stat.S_IMODE(buf), mode, "%s does not have mode %o" % (f, mode)) |
128 |
self.assertEqual(stat.S_IMODE(buf), mode, "%s does not have mode %o" % (f, mode)) |
127 |
|
129 |
|
Lines 549-561
Link Here
|
549 |
|
551 |
|
550 |
def test_configfiles(self): |
552 |
def test_configfiles(self): |
551 |
"""Configuration files should not be executable""" |
553 |
"""Configuration files should not be executable""" |
|
|
554 |
exceptions = ["/opt/thinlinc/etc/xsession", |
555 |
"/opt/thinlinc/etc/xstartup.default"] |
552 |
files = glob.glob("/opt/thinlinc/etc/*") + glob.glob("/opt/thinlinc/etc/conf.d/*") |
556 |
files = glob.glob("/opt/thinlinc/etc/*") + glob.glob("/opt/thinlinc/etc/conf.d/*") |
553 |
for f in files: |
557 |
for f in files: |
554 |
if os.path.isdir(f): |
558 |
if os.path.isdir(f): |
555 |
continue |
559 |
continue |
556 |
buf = os.stat(f)[stat.ST_MODE] |
560 |
buf = os.stat(f)[stat.ST_MODE] |
557 |
self.assert_(stat.S_ISREG(buf), "%s is not regular" % f) |
561 |
self.assert_(stat.S_ISREG(buf), "%s is not regular" % f) |
558 |
if f.startswith("/opt/thinlinc/etc/xstartup.d"): |
562 |
if f in exceptions: |
559 |
continue |
563 |
continue |
560 |
elif f in self.secret_600: |
564 |
elif f in self.secret_600: |
561 |
continue |
565 |
continue |