summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove duplicated parapgraph.se2013-07-241-10/+0
| | | | MFC after: 3 days
* Fix a bug in cp += SA_SIZE() in RTA_* loop. This could preventhrs2013-07-241-8/+7
| | | | | | RTA_IFP from displaying correctly in route get subcommand. Spotted by: dim
* Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.loos2013-07-231-1/+2
| | | | | | | | | | | | | | This fix the case when etherswitch is printing the information of port 0 vlan group (in port based vlan mode) with no member ports. Add the ETHERSWITCH_VID_VALID support to ip17x driver. Add the ETHERSWITCH_VID_VALID support to rt8366 driver. arswitch doesn't need to be updated as it doesn't support vlans management yet. Approved by: adrian (mentor)
* Fix the usage error message. The valid range is up to max. vlan - 1 since ↵loos2013-07-231-1/+3
| | | | | | vlangroups starts at 0. Approved by: adrian (mentor)
* - Use getnameinfo() for both of AF_INET and AF_INET6 in routename().hrs2013-07-211-46/+54
| | | | - Add missing "static".
* - Fix nflag in routename().hrs2013-07-211-10/+33
| | | | | | | - Display a AF_LINK address in #linkN when sdl_{nlen,alen,slen) == 0 and sdl_index != 0. - Reduce unnecessary loop in pmsg_addrs(). - Remove iso_ntoa(). This is not used.
* - Simplify getaddr() and print_getmsg() by using RTAX_* instead of RTA_*hrs2013-07-201-80/+48
| | | | | as the argument. - Reduce unnecessary loop in print_getmsg().
* Show "default" for the zero-filled address consistently when nflag == 0.hrs2013-07-201-13/+10
|
* Add cast to (void *) to the following cases to suppress warnings byhrs2013-07-201-24/+23
| | | | | | | -Wcast-align. These do not increase the alignment requirement: - rtm = (struct rt_msghdr *)(rtm + rtm->rtm_msglen) - struct sockaddr *sa = &sa0; sX = (struct sockaddr_X *)sa
* Add message when nvd disks are attached and detached.jimharris2013-07-193-8/+14
| | | | | | | | | | | | As part of this commit, add an nvme_strvis() function which borrows heavily from cam_strvis(). This will allow stripping of leading/trailing whitespace and also handle unprintable characters in model/serial numbers. This function goes into a new nvme_util.c file which is used by both the driver and nvmecontrol. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Fix nvme(4) and nvd(4) to support non 512-byte sector sizes.jimharris2013-07-191-1/+1
| | | | | | | | | | Recent testing with QEMU that has variable sector size support for NVMe uncovered some of these issues. Chatham prototype boards supported only 512 byte sectors. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Use _PATH_DEV (from paths.h) for the "/dev/" string, rather thanjimharris2013-07-182-2/+4
| | | | | | | | | hard-coding it. Sponsored by: Intel Suggested by: kib Reviewed by: kib, carl MFC after: 3 days
* Simplify open_dev() by returning errno values rather than just 0 or 1.jimharris2013-07-182-15/+4
| | | | | | | | | Also remove stat() call and just rely on errno from open() call to discern whether dev node exists or not. Sponsored by: Intel Reviewed by: kib, carl MFC after: 3 days
* Minor mdoc fixes.joel2013-07-181-10/+10
|
* Fix a gcc warning.hrs2013-07-181-1/+4
| | | | Pointy hat to: hrs
* Define constants for the lengths of the serial number, model numberjimharris2013-07-172-4/+7
| | | | | | | | | | | and firmware revision in the controller's identify structure. Also modify consumers of these fields to ensure they only use the specified number of bytes for their respective fields. Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* Always initialize fd to 0 in open_dev().jimharris2013-07-171-0/+2
| | | | | | Sponsored by: Intel Reviewed by: carl MFC after: 3 days
* In this GRN, Marcel Moolenaar overhauled the logic for mountingrodrigc2013-07-172-1/+253
| | | | | | | | | | | | | | | | | | the root file system on bootup: |------------------------------------------------------------------------ |r214006 | marcel | 2010-10-17 22:01:53 -0700 (Sun, 17 Oct 2010) | 20 lines | | Re-implement the root mount logic using a recursive approach, whereby each |root file system (starting with devfs and a synthesized configuration) can |contain directives for mounting another file system as root. |------------------------------------------------------------------------ This commit adds a mount.conf(8) man page which documents the root mount logic. mount.conf(8) also provides some examples for the /.mount.conf file, which can be used to change the root mount behavior. Reviewed by: marcel bjk
* Use NET_RT_DUMP.0.FIB leaf node instead of setting td_proc->p_fibnum.hrs2013-07-171-12/+2
|
* - Add support of MK_INET_SUPPORT=no.hrs2013-07-172-268/+278
| | | | | | | | | | | | - Fix a bug in sodump() which prevented struct sockaddr_in6 from displaying. - Fix a bug in in fiboptlist_csv() which could cause free() of uninitialized pointer. - Style cleanups: . Add missing "static" keywords. . Use an array of struct sockaddr_storage instead of sockunion for rtmsg. . Use err() and errx() instead of pair of fprintf(stderr, "...") + exit(1). . Use nitems() macro. . Various style(9) fixes.
* Simplify keywords.h generation.hrs2013-07-171-9/+5
|
* Do not throw an error if the user requests to activate the image fromjimharris2013-07-161-1/+1
| | | | | | | | | an empty firmware slot, as long as the user has specified a firmware image to download into the empty firmware slot. Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> MFC after: 3 days
* Add -n flag for compatibility with Linux version of mount(8).rmh2013-07-152-1/+7
| | | | Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock
* %d should be used for printing int32_t instead of %zd.jimharris2013-07-121-1/+1
| | | | | | clang does not complain about this - only gcc. MFC after: 3 days
* Fix 'SEE ALSO' list.oleg2013-07-121-3/+3
|
* Clarify how "hide" and "unhide" commands work on directories.jh2013-07-121-1/+4
|
* Ensure controller or namespace node name is specified before trying tojimharris2013-07-092-1/+5
| | | | | | | | | | access it. While here, also fix the identify usage message to show the -v and -x parameters. Sponsored by: Intel MFC after: 3 days
* Condense the output for displaying LBA formats.jimharris2013-07-091-6/+4
| | | | | Sponsored by: Intel MFC after: 3 days
* Send per-namespace logpage commands to the controller devnode, so theyjimharris2013-07-094-57/+53
| | | | | | | | | | | are processed as admin commands, not I/O commands. As part of this change, pull out the code for parsing a namespace node string into a separate function, since it is used for both identify and logpage commands. Sponsored by: Intel MFC after: 3 days
* Try to read firmware image before prompting the user to confirmjimharris2013-07-091-1/+3
| | | | | | | | | firmware download. This correctly prints an error and exits for an incorrect firmware image name before prompting the user to confirm the download. Sponsored by: Intel MFC after: 3 days
* Incorporate feedback from bde@ based on r252672 changes:jimharris2013-07-097-204/+134
| | | | | | | | | | | | * Use 0/1 instead of sysexits. Man pages are confusing on this topic, but 0/1 is sufficient for nvmecontrol. * Use err function family where possible instead of fprintf/exit. * Fix some typing errors. * Clean up some error message inconsistencies. Sponsored by: Intel Submitted by: bde (parts of firmware.c changes) MFC after: 3 days
* Document the "gssname" and "allgssname" mount options added by thermacklem2013-07-091-1/+25
| | | | | host-based initiator credential patches. This is a content change.
* Correct the printf format specifier for total_events.asomers2013-07-081-2/+3
| | | | | | | Add __printflike argument checking for devdlog(). Reported by: pjd Approved by: gibbs (co-mentor)
* Fix dhclient for interfaces that are down. The discover_interfaces() functionpjd2013-07-041-5/+5
| | | | | | | | that looks for interface skips interfaces that are not UP. We need to call dhclient-script PREINIT before we call discover_interfaces(), so the script has a chance to bring the interface UP. Reported by: alfred
* Fix printf argument mismatch reported by gcc on i386.jimharris2013-07-041-2/+2
| | | | Reported by: kargl
* MFp4 @229488:pjd2013-07-031-0/+3
| | | | | | | Sandbox unprivileged process using capability mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229487:pjd2013-07-031-0/+7
| | | | | | | | Revoke all capability rights from STDIN and allow only for write to STDOUT and STDERR. All those descriptors are redirected to /dev/null. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229486:pjd2013-07-031-1/+6
| | | | | | | | Once PID is written to the pidfile, revoke all capability rights. We just want to keep the pidfile open. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229485:pjd2013-07-031-0/+5
| | | | | | | Only allow to overwrite lease file. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229484:pjd2013-07-031-0/+4
| | | | | | | | | Limit routing socket so only poll(2) and read(2) are allowed (CAP_POLL_EVENT and CAP_READ). This prevents unprivileged process from adding, removing or modifying system routes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229483:pjd2013-07-031-0/+6
| | | | | | | Limit communication pipe with privileged process to CAP_READ and CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229482:pjd2013-07-031-0/+12
| | | | | | | | | - Limit bpf descriptor in unprivileged process to CAP_POLL_EVENT, CAP_READ and allow for SIOCGIFFLAGS, SIOCGIFMEDIA ioctls. - While here limit bpf descriptor in privileged process to only CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229481:pjd2013-07-034-18/+75
| | | | | | | | | | | | Currently it was allowed to send any UDP packets from unprivileged process and possibly any packets because /dev/bpf was open for writing. Move sending packets to privileged process. Unprivileged process has no longer access to not connected UDP socket and has only access to /dev/bpf in read-only mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229480:pjd2013-07-031-0/+2
| | | | | | | Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229479:pjd2013-07-031-1/+4
| | | | | | | | - Add new request (IMSG_SEND_PACKET) that will be handled by privileged process. - Add $FreeBSD$. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229477:pjd2013-07-031-4/+11
| | | | | | | | | The gethostname(3) function won't work in capability mode, because reading kern.hostname sysctl is not permitted there. Cache hostname early and use cached value later. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* Remove redundant white-spaces.pjd2013-07-031-9/+9
|
* MFp4 @229476,229478:pjd2013-07-032-60/+70
| | | | | | | | | Make use of two fields: rfdesc and wfdesc to keep bpf descriptor open for reading only in rfdesc and bpf descriptor open for writing only in wfdesc. In the end they will be used by two different processes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229474:pjd2013-07-031-2/+2
| | | | | | | iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
* MFp4 @229473:pjd2013-07-033-6/+5
| | | | | | | No caller checks send_packet() return value, so make it void. Reviewed by: brooks Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud