frisco
October 24th, 2002, 19:01
anyone care to do some in-depth explaining of mount_portal?
i can get tcp to work with it, but can't figure out exec'ing stuff. the docs on this stuff seems really limited, but the potential seems great. i found this- http://wuarchive.wustl.edu/mirrors/NetBSD/NetBSD-current/src/sbin/mount_portal/examples/ but netbsd has a much more advanced mount_portal than openbsd and freebsd and so those examples dont have exec among them.
if anyone can provide an overview of any security issues involved with mount_portal, that'd be great too.
if you dont know what mount_portal is... it lets you access processes/tcp sockets like files. for example:
% cat /p/tcp/192.168.1.2/daytime
Thu Oct 24 17:42:44 2002
though the actual command run is 'cat', mount_portal ties the file /p/tcp/192.168.1.2/daytime to the tcp daytime socket on 192.168.1.2 and reads from it.
i'd like to be able to do something like this:
% cat /p/lynx/www.screamingelectron.org
and have it automatically run 'lynx -dump www.screamingelectron.org'.
right now i have the following in my portal.conf:
lynx/ exec lynx/ lynx -dump %s
and i get this errror:
cat: /p/lynx/www.screamingelectron.org: Exec format error
any ideas as to how to fix this?
i'd also like to use mount_portal to make 2 or more files appear as one.
thanks in advance.
i can get tcp to work with it, but can't figure out exec'ing stuff. the docs on this stuff seems really limited, but the potential seems great. i found this- http://wuarchive.wustl.edu/mirrors/NetBSD/NetBSD-current/src/sbin/mount_portal/examples/ but netbsd has a much more advanced mount_portal than openbsd and freebsd and so those examples dont have exec among them.
if anyone can provide an overview of any security issues involved with mount_portal, that'd be great too.
if you dont know what mount_portal is... it lets you access processes/tcp sockets like files. for example:
% cat /p/tcp/192.168.1.2/daytime
Thu Oct 24 17:42:44 2002
though the actual command run is 'cat', mount_portal ties the file /p/tcp/192.168.1.2/daytime to the tcp daytime socket on 192.168.1.2 and reads from it.
i'd like to be able to do something like this:
% cat /p/lynx/www.screamingelectron.org
and have it automatically run 'lynx -dump www.screamingelectron.org'.
right now i have the following in my portal.conf:
lynx/ exec lynx/ lynx -dump %s
and i get this errror:
cat: /p/lynx/www.screamingelectron.org: Exec format error
any ideas as to how to fix this?
i'd also like to use mount_portal to make 2 or more files appear as one.
thanks in advance.