[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4
From: |
Thomas Schmitt |
Subject: |
Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD |
Date: |
Thu, 21 Jul 2016 19:55:18 +0200 |
Hi,
more things to check for documentation and build system:
- What permissions are needed to operate a drive ?
- How to persistently set these permissions ?
- Weren't there preparations necessary for #include and linking ?
- In what range of OpenBSD versions is libburn/sg-netbsd.c supposed to work ?
- Are there special precautions needed to mount regular files ?
- How to mount a ISO 9660 CD/DVD/BD with offset ?
The spots where the answers will matter are:
---------------------------------------------------------------------
What permissions are needed to operate a drive ?
---------------------------------------------------------------------
libisoburn-*/README:
"On Linux, FreeBSD, NetBSD this means -rw-permissions, even if only reading is
intended. On Solaris one needs privileges "basic,sys_devices" and r-permission,
"
libisoburn-*/xorriso/README_gnu_xorriso:
"On Linux, FreeBSD, and NetBSD, rw-permissions are needed.
On Solaris, the privilege "sys_devices" and r-permission are needed."
libisoburn-*/xorriso/xorrecord.texi:
"On GNU/Linux, FreeBSD, and NetBSD, the user needs rw-permission for the
device file."
libisoburn-*/xorriso/xorriso.texi:
"On Linux, FreeBSD or NetBSD consider to give rw-permissions to those users
or groups which shall be able to use the drives with @command{xorriso}."
libisoburn-*/xorriso/xorriso_eng.html:
"GNU/Linux, FreeBSD, NetBSD demand rw-permission."
libburn-*/cdrskin/README:
"On FreeBSD, device rw-permissions are to be set in /etc/devfs.rules.
On Solaris, pfexec privileges may be restricted to "basic,sys_devices".
On NetBSD, rw-permission may be granted by chmod a+rw /dev/rcd?d."
libburn-*/cdrskin/README:
"Linux, FreeBSD, and NetBSD demand rw-permission."
libburn-*/cdrskin/cdrskin_eng.html
"Linux, FreeBSD, and NetBSD demand rw-permission."
---------------------------------------------------------------------
How to persistently set these permissions ?
---------------------------------------------------------------------
libisoburn-*/xorriso/README_gnu_xorriso:
libburn-*/cdrskin/README:
"On NetBSD:
Allow rw-access to the drives
chgrp floppy /dev/rcd[01]d
chmod g+rw /dev/rcd[01]d
"
---------------------------------------------------------------------
Weren't there preparations necessary for #include and linking ?
---------------------------------------------------------------------
libisoburn-*/acinclude.m4 has:
netbsd*)
LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/pkg/lib"
CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/usr/pkg/include"
---------------------------------------------------------------------
In what range of OpenBSD versions is libburn/sg-netbsd.c supposed to work ?
---------------------------------------------------------------------
libburn-*/libburn/sg-netbsd.c:
"Present implementation: NetBSD 6, ioctl SCIOCCOMMAND
OpenBSD 5.9, ioctl SCIOCCOMMAND
"
libburn-*/libburn/os-netbsd.h
" Operating system specific libburn definitions and declarations. Included
by os.h in case of compilation for
NetBSD 6 or OpenBSD 5.9
with MMC transport adapter sg-netbsd.c
"
(This state has been preliminarily commited by:
http://libburnia-project.org/changeset/5723
)
---------------------------------------------------------------------
Are there special precautions needed to mount regular files ?
---------------------------------------------------------------------
libisoburn-*/xorriso/disk_ops.c:
Xorriso_msgs_submit(xorriso, 0,
"Detected regular file as mount device with BSD style command.",
0, "FAILURE", 0);
if(sys_code == 2) {
Xorriso_msgs_submit(xorriso, 0,
"Command mdconfig -a -t vnode -f can create a device node which uses the file",
0, "HINT", 0);
} else {
Xorriso_msgs_submit(xorriso, 0,
"Command vnconfig -c vndX can create a device node which uses the file",
0, "HINT", 0);
}
(sys_code==2 is FreeBSD, syscode==3 is NetBSD.)
---------------------------------------------------------------------
How to mount a ISO 9660 CD/DVD/BD with offset ?
---------------------------------------------------------------------
libisoburn-*/xorriso/disk_ops.c:
if(sys_code == 3 && strncmp(devadr, "/dev/rcd", 8) == 0) {
sprintf(cooked_dev, "/dev/cd%s", devadr + 8);
eff_dev= cooked_dev;
}
sprintf(form,
"%smount_cd9660 -o noexec,nosuid -s %%sbsector%% %%device%% %s",
(flag & 1 ? "/sbin/" : ""), Text_shellsafe(cpt, sfe, 0));
I.e. would
/sbin/mount_cd9660 -o noexec,nosuid -s 0 /dev/cd0
mount the CD drive which has burner address /dev/rcd0c ?
(Best would be a test with a multi session ISO and non-0 -s argument.)
---------------------------------------------------------------------
Have a nice day :)
Thomas
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, (continued)
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/20
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/21
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/21
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/21
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD,
Thomas Schmitt <=
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/22
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/22
- [Bug-xorriso] libfoo.so.$major.$minor issue (Re: building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD), SASANO Takayoshi, 2016/07/30
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/30
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/31
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/25
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/26
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/28
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, Thomas Schmitt, 2016/07/28
- Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD, SASANO Takayoshi, 2016/07/29