Commit graph

14 commits

Author SHA1 Message Date
Sukru Senli
7e026deb64 samba: support multiple interface triggers 2016-08-29 10:20:51 +02:00
Sukru Senli
2543d6a601 samba3: add procd interface event trigger 2016-08-29 10:15:04 +02:00
Alex Oprea
6a713b2933 samba: increase path security, no share outside /mnt
If the path is still outside /mnt/ after all the previous checks and
	enforces have been applied, overwrite the path to "/mnt/".

	This is usefull in the following scenario:
	- "/mnt/tmp" is a soft link to "/tmp"
	- $path is pushed from the web gui as "/"
	- $dirpath is pushed from the web gui as "tmp"
	The init script prepends "/mnt/", the $path becomes "/mnt/tmp".
	Further, the smb.conf would receive "path = /mnt/tmp" and
	samba would export for share "/tmp".

	A while-loop (that always prepends "/mnt/" to $(readlink -f $path)
		if it does not start with "/mnt")
	would not prevent this case exactly because
	the soft link and the target directory have the same name,
	thus the loop would never end.
2016-08-08 10:27:07 +02:00
Alex Oprea
4e8f08aa8b samba: use readlink -f before forcing the /mnt/ prefix
When checknig that path starts with /mnt/, path should not include
	softlinks, "." or "..". This prevents the obvoius case of sharing the
	"/mnt/../" path, which will jump out of the restricted /mnt/.
2016-08-04 16:13:10 +02:00
Alex Oprea
203e252bae samba: fix code logic: $path was definetly not empty when checked
Assuming that path and dirpath are both empty, path becomes
	"/", which is not empty. The -z $path check after was useless.
	Changed the order of this two operations.
2016-08-04 16:13:10 +02:00
Alex Oprea
977657eefd samba: restrict share paths to /mnt refs #9862
force the share paths to always start with /mnt/
	set wide links to no, in order to not allow soft links
	to be followed outside /mnt/
2016-08-04 14:30:24 +02:00
Sukru Senli
fc74862f11 samba3: add mising files 2016-06-08 14:27:35 +02:00
Fredrik Åsberg
e92bc0ea7d Moved the following packages to inteno-packages-openwrt:v3.5
and moved luci out of webgui.

alljoyn
block-mount-old
dbus
ddns-scripts
glib2
haproxy
hotplug2
libffi
libipfix
libmbim
libmicroxml
libpcre
libqmi
luci
minidlna
multiwan
net-snmp
samba2
samba3
shflags
syslog-ng3
usb-modeswitch
2016-01-26 15:06:55 +01:00
Sukru Senli
35427c3ad2 fix samba not reloaded via webgui issue 2015-12-10 14:02:29 +01:00
Sukru Senli
4c377f65b5 samba3 fixed 2015-12-08 16:31:10 +01:00
Sukru Senli
07f1a622f7 replace samba3 with samba36 2015-06-15 22:06:33 +02:00
Sukru Senli
92dc21ebc7 update samba and dect init scripts 2015-06-15 22:06:32 +02:00
Sukru Senli
777647df2b samba procdified 2015-06-15 22:06:32 +02:00
Sukru Senli
59972d8b74 BarrierBreaker 2015-06-15 21:57:39 +02:00