| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Update Changelog and version number
|
|
|
|
| |
the kernel subdirectory no longer exists
|
|
|
|
|
|
|
| |
We were setting LDFLAGS for libopeniscsiusr, but
that is overridden by any value passed in on the command
line, which is not what was intended. Instead, use
a new/different variable for this.
|
|
|
|
|
|
|
|
|
|
|
| |
* Use libopeniscsiusr for `iscsiadm -m session -P <0-3>` command.
* Use libopeniscsiusr for iSCSI session information used by
`iscsiadm -m node -H <host_no> -P <2 - 4>`command.
* Since `/sys/class/iscsi_session/session1/username` require root
permission, this patch require `iscsiadm` been ran with root
privilege.
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* New function `iscsi_session_iface_get()` to query in use iface of
specified iscsi session.
* Only basic information included required by command
'iscsiadm -m session -P 3'
* The iface name does not support old kernel yet. Will fix that in
full iface support patches.
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* iscsi_sessions_get()/iscsi_sessions_free() for query all iSCSI
session.
* iscsi_session_get()/iscsi_session_free() for query specified iSCSI
session id.
* And a lot more functions for property query of
`struct iscsi_session`.
* New unit test case created 'tests/test_session.c'.
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
* This is the initial patch of the library libopenscsiusr.so, so we have no
actual code on iscsi functionality, just introduce a code layout.
* The library is created by following the guideline of libabc.
* Documentation is done by using linux kernel-doc script generating
manpages out of header files.
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
| |
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
| |
Signed-off-by: Gris Ge <fge@redhat.com>
|
|\
| |
| | |
Discovery via non-tcp transport needs "ipc" value
|
|/
|
|
|
|
|
|
| |
The "ipc" variable was being set to NULL because
the discovery code was thought to rely on that
value, but that was not the case, and non-tcp
transport needs this variable set to its
default (non-null) value to work.
|
|\
| |
| | |
Add in tracking IP prefix length, in addition to mask.
|
| |
| |
| |
| |
| | |
The modern IP standard stresses the IP prefix length
rather than the mask, so track the IP prefix length.
|
|\ \
| |/
|/| |
Add some scripts and man pages to the top Makefile. No functional changes.
|
|/
|
|
|
| |
This is just cleanup, as these scripts and man pages
are present but just not named in the top-level Makefile.
|
|\
| |
| | |
Cleanup iscsiuio master Makefile template.
|
| |
| |
| |
| |
| |
| | |
Make sure needed directories exist, and make
sure install/symbolic linking of target
works, even when not in root=/.
|
|\ \
| |/
|/| |
Update iscsid.conf attribute iscsid.startup.
|
|/
|
|
|
|
| |
The comments for this attribute were outdated. In
general, with systemd, we do not want to manually
start the iscsid daemon ourselves.
|
|\
| |
| | |
Repo cleanup, delete old kernel stuff and unused stub code
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This never supported any BSD drivers, they have their own tools, this is
just old unused stub code. This is a Linux only project.
The cleanup of usr/Makefile also stops checking for kernel version.
NETLINK_ISCSI should come from a kernel supplied netlink.h, and should
always be 8. The values of 11 or 12 I think were speculating on what
the assigned value might be when the iSCSI code was still out of tree,
it's been assigned as 8 since 2005.
|
| |
| |
| |
| |
| |
| | |
The out of tree kernel code in this repo has not been maintained for a
very long time. We're only maintaining the user-space tools here, the
kernel side is in the Linux kernel.
|
|\ \
| | |
| | | |
Automate logging into iSCSI FW targets.
|
| |/
| |
| |
| |
| |
| |
| | |
Add a script that logs into all iSCSI firmware
targets, and add a udev rule to call that script
when new targets are detected. Also, add a
man page for the script.
|
|\ \
| |/
|/| |
Ignore common build output files
|
|/ |
|
|\
| |
| | |
Iscsiuio fixes, needed to fix some possible vulnerabilities
|
| | |
|
| |
| |
| |
| |
| | |
We do not trust that the received ping packet data length
is correct, so sanity check it. Found by Qualsys.
|
| |
| |
| |
| |
| |
| | |
Remove a useless strcpy() that copies a string onto itself,
and ensure the CIDR length "keepbits" is not negative.
Found by Qualsys.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The method of using strlen() and strcpy()/strncpy() has
a couple of holes. Do not try to measure the length of
strings supplied from peer, and ensure copied strings are
NULL-terminated. Use the new strlcpy() instead.
Found by Qualsys.
|
| |
| |
| |
| |
| | |
A double-close of a file descriptor and its associated FILE stream
can be an issue in multi-threaded cases. Found by Qualsys.
|
| |
| |
| |
| |
| |
| | |
Make sure all fields in the response strcuture are set,
or info from the stack can be leaked to our caller.
Found by Qualsys.
|
| |
| |
| |
| |
| |
| |
| | |
When iscsiuio is receiving broadcast packets from iscsid,
if the 'payload_len', carried in the packet, is too
large then ignore the packet and print a message.
Found by Qualsys.
|
| |
| |
| |
| |
| | |
This fixes a possible vulnerability where a non-root
process could connect with iscsiuio. Fouund by Qualsys.
|
| |\
| |/
|/| |
Merge from upstream
|
|\ \
| |/
|/| |
New compiler fixes, having heard no objections, are being merged.
|
| |
| |
| |
| |
| | |
The 7.2.1 version of gcc seems to be more strict
about this. See https://gcc.gnu.org/onlinedocs/gcc/Inline.html
|
| | |
|
| |
| |
| |
| |
| | |
This makes the compiler much happier, and
debugging easier.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Gcc compiler version 7.2.1 complains about possible string
overflow from prom_parse.y:
> prom_parse.tab.c: In function ‘yyparse’:
> prom_parse.y:98:25: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 0 and 255 [-Wformat-overflow=]
> sprintf($$, "%s/%s", $<str>1, $<str>3);
> ^~~~~~~
So make the string buffer larger. Also, tell the compiler it is
ok if we truncate strings, since our buffer is very large. Lastly,
ensure we use strncpy() when copying strings.
|
| |
| |
| |
| |
| |
| | |
This avoids linker and human confusion with
the <usr/strings.h> include file. No functional
change.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Gcc version 7.2.1 and linux-glibc-devel version 4.14
complain about _SVID_SOURCE, which is deprecated, so
use the replacement of _DEFAULT_SOURCE. The error
message looks like:
> In file included from /usr/include/ftw.h:25:0,
> from fwparam_sysfs.c:23:
> /usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
> ^~~~~~~
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Gcc version 7.2.1 complains about string formatting that
may be truncated, generating messages such as:
> fwparam_sysfs.c: In function ‘fwparam_sysfs_boot_info’:
> fwparam_sysfs.c:45:25: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 242 [-Wformat-truncation=]
> #define ISCSI_LLD_ROOT "/sys/firmware/"
Making the destination strings longer fixes this issue.
|
|/
|
|
|
|
| |
Gcc version 7.2.1 and linux glibc devel version 4.14
define __bitwise and does not need open-iscsi to
do it, so check for define before doing it ourselves.
|
|
|
|
|
|
| |
More consistent, doesn't rely on __packed being defined in userspace.
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
|
| |
|
|\
| |
| | |
Add bnx2{,x} software initiator IBFT support
|