summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* MFC r310025:bdrewery2017-01-031-2/+2
| | | | Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().
* MFC r305148:bdrewery2017-01-032-0/+36
| | | | DIRDEPS_BUILD: Add some missing dirctories to the build.
* MFC r309411: Retire long-broken/unused static rtld supportemaste2017-01-034-19/+11
| | | | | | | | | | | | | | | | | | | rtld-elf has some vestigial support for building as a static executable. r45501 introduced a partial implementation with a prescient note that it "might never be enabled." r153515 introduced ELF symbol versioning support, and removed part of the unused build infrastructure for static rtld. GNU ld populates rela relocation addends and GOT entries with the same values, and rtld's run-time dynamic executable check relied on this. Alternate toolchains may not populate the GOT entries, which caused RTLD_IS_DYNAMIC to return false. Simplify rtld by just removing the unused check. If we want to restore static rtld support later on we ought to introduce a build-time #ifdef flag. PR: 214972
* MFC r310155:kib2016-12-191-1/+1
| | | | Fix typo.
* MFC 308456: Pass the correct flag to find_symdef() from _rtld_bind().jhb2016-12-012-3/+3
| | | | | | | | When symbol versioning was added to rtld, the boolean 'in_plt' argument to find_symdef() was converted to a bitmask of flags. The first flag added was 'SYMLOOK_IN_PLT' which replaced the 'in_plt' bool. This happened to still work by accident as SYMLOOK_IN_PLT had the value of 1 which is the same as 'true', so there should be no functional change.
* MFC r308689:kib2016-11-2320-5/+151
| | | | | | | | | | Pass CPUID[1] %edx (cpu_feature), %ecx (cpu_feature2) and CPUID[7].%ebx (cpu_stdext_feature), %ecx (cpu_stdext_feature2) to the ifunc resolvers on x86. MFC r308925: Adjust r308689 to make rtld compilable with either in-tree or (hopefully) stock gcc 4.2.1 on i386 and other arches.
* MFC r308688:kib2016-11-221-1/+1
| | | | Assert that there is no unresolved symbols during rtld linking.
* MFC r308687:kib2016-11-221-1/+1
| | | | Update hint to utilize user variable.
* MFC r308567: Fix build when WITHOUT_BLACKLIST=yes is specifiedlidl2016-11-151-3/+0
| | | | Sponsored by: The FreeBSD Foundation
* MFC r308175: Revisit blacklistd support in ftpdlidl2016-11-084-15/+50
| | | | | | | | | Enhance blacklistd support to not log anything by default, unless blacklistd support is enabled on the command line. Document new flag in man page, cleanup patches to be less intrusive in code. Sponsored by: The FreeBSD Foundation
* MFC r306029:ngie2016-10-212-2/+2
| | | | Use SRCTOP instead of the longhand version for defining the path to contrib/atf
* MFC r307398:markj2016-10-191-2/+2
| | | | | | Reference the libc symbols ypresp_{allfn,data} instead of local symbols. PR: 213506
* Import Dragonfly Mail Agent snapshort from 20160806 aka v0.11+bapt2016-08-221-1/+1
| | | | | | | | | | | | | | | | | Most important change being: dma - Fix security hole Affecting DragonFly 4.6 and earlier, Matt Dillon fixed this in base after finding out from BSDNow Episode 152. Comments following were from his commit which explains better than I. Just taking his change and putting it here as well. * dma makes an age-old mistake of not properly checking whether a file owned by a user is a symlink or not, a bug which the original mail.local also had. * Add O_NOFOLLOW to disallow symlinks. Thanks-to: BSDNow Episode 152, made me dive dma to check when they talked about the mail.local bug.
* MFC r304016:kib2016-08-192-27/+65
| | | | Move defines common between rtld and libsysdecode into the header.
* MFC r304012:kib2016-08-191-0/+4
| | | | Fill phdr and phsize for rtld object.
* MFC r304011:kib2016-08-191-10/+6
| | | | Remove all remaining uses of TAILQ_FOREACH_FROM() from rtld-elf.
* MFC r302908:bdrewery2016-07-221-1/+1
| | | | | | | Fix dlsym(RTLD_NEXT) handling to only return the next library in last library cases. Approved by: re (gjb)
* Fix race for incrementally rebuilding VERSION_MAP.bdrewery2016-07-031-2/+1
| | | | | | | | | | | | | | The dependency is needed in PROG_FULL since only the build of PROG_FULL is using the LDFLAGS and depending on VERSION_MAP. This was not a problem with MK_DEBUG_FILES==no since it only builds PROG. This should probably be using bsd.lib.mk instead [1] Reported by: swills, gjb Reviewed by: emaste Noted by: rgrimes [1] Sponsored by: EMC / Isilon Storage Division Approved by: re (kib)
* DIRDEPS_BUILD: Update dependenciesbdrewery2016-06-144-0/+8
| | | | | Approved by: re (gjb) Sponsored by: EMC / Isilon Storage Division
* Separate BLACKLIST vs BLACKLIST_SUPPORT properlylidl2016-06-071-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Update blacklist support in ftpd to clarify fd usagelidl2016-06-062-13/+11
| | | | | | | | | | | | | The ftp daemon dups the control socket to stdin and uses that fd throughout the code. Clarify this usage slightly by changing from explicit use of "0" for the fd to a variable, to make it clear what the zero represents in the non-blacklist code. Make the blacklist_notify routine use STDIN_FILENO so as to have less of a "magic number" feel to the code. Reviewed by: cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6716
* Add blacklist support to rlogindlidl2016-06-052-3/+27
| | | | | | | Reviewed by: rpaulo Approved by: rpaulo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6593
* DIRDEPS_BUILD: Connect new directories and update dependencies.bdrewery2016-06-031-0/+11
| | | | Sponsored by: EMC / Isilon Storage Division
* Add blacklist support to fingerdlidl2016-06-032-0/+20
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5916
* Add blacklist support to rshdlidl2016-06-032-1/+42
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6594
* Add blacklist support to ftpdlidl2016-06-034-0/+109
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6703
* Add basic blacklist build supportlidl2016-06-022-0/+12
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5913
* Revert r301137 and r301163, and implement a correct fixgjb2016-06-011-0/+2
| | | | | | | | | | for the CONFS issue with dma.conf and ppp.conf. Thank you very much to Bryan Drewery for looking into the problem and providing this fix. Pointyhat: gjb Sponsored by: The FreeBSD Foundation
* Implement a hack to re-enable installation of the dma.conf.gjb2016-06-011-2/+0
| | | | | | | | | | | | The 'CONFS' entries in share/mk/bsd.confs.mk explicitly check for the 'installconfig', but does not behave properly with the 'distribute' target. This seems to be related to the previously-reported issues with files within /etc in the past. Reported by: Ben Woods Sponsored by: The FreeBSD Foundation
* Fix issues found by Coverity in the rtld-elf.c:gethints().kib2016-05-251-7/+28
| | | | | | | | | | | | | | | | Check that the dirlist path string specification does not cause overflow and is fully contained in the hints file. Check that the dirlist string is nul-terminated. Make 'hdr' static variable, so that hdr.dirlistlen is available when hints cached value is used on next function calls. Reset hdr.dirlistlen to zero if error was detected, so that allocations use reasonable size. Use 'hints', and not 'p' in the body, since p is only initialized on the first call. Reported and reviewed by: truckman (previous version) Sponsored by: The FreeBSD Foundation CIDs: 1006503, 1006504, 1006676, 1008488, 1007263 MFC after: 2 weeks
* Declare line[] in the outermost scope of retrieve() instead oftruckman2016-05-131-3/+3
| | | | | | | | declaring it in an inner scope and then using it via a pointer in the outer scope. Reported by: Coverity CID: 605895
* Rename getline with get_line to avoid collision with getline(3)bapt2016-05-103-5/+5
| | | | | When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added. This rename is made in preparation for the removal of this guard
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-047-41/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* libexec: minor spelling fixes in comments.pfg2016-05-014-4/+4
| | | | No functional change.
* Fix including Kyuafile in packaged base system.gjb2016-04-293-4/+7
| | | | | | | | | | | | Fix a related typo while here. Note, this change results in the Kyuafile inclusion in the runtime package, which needs to be fixed, however addresses the PR as far as I can tell in my tests. PR: 209114 Submitted by: ngie Sponsored by: The FreeBSD Foundation
* rtld-elf: use our roundup2() macro when param.h is available.pfg2016-04-191-2/+2
|
* rtld-elf: use NULL instead of zero for pointers.pfg2016-04-195-5/+5
|
* rbootd: use NULL instead of zero for pointers.pfg2016-04-181-2/+2
|
* ftpd: replace malloc + memset 0 with calloc.pfg2016-04-181-3/+2
| | | | | It is faster and usually safer. Use NULL instead of zero for the pointer.
* Remove lib/libcapsicum and libexec/casper, brought back asgjb2016-04-1716-1824/+0
| | | | | | | part of a merge mishap. Reported by: junovitch Sponsored by: The FreeBSD Foundation
* MFHgjb2016-04-137-34/+31
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Restore some comments in previous commit.pfg2016-04-121-3/+3
| |
| * bootpd(8): De-register and minor cleanups.pfg2016-04-127-37/+34
| | | | | | | | | | For bootptest(8) also remuve an unused variable and replace 0 with a NULL for a pointer.
* | MFHgjb2016-04-043-1/+11
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * WITHOUT_TOOLCHAIN: Fix build of rtld.bdrewery2016-03-311-0/+3
| | | | | | | | | | | | | | | | | | | | MK_TOOLCHAIN==no disables building and installing of pic archives. c_pic.a is still needed for rtld though so force it to build in lib/libc and link directly to the objdir version of it for rtld. Somehow this has been broken since r148725. Sponsored by: EMC / Isilon Storage Division
| * Do not override top level CFLAGS in libexec/dmakan2016-03-271-1/+1
| |
| * Install a usable mailer.conf for dragonfly mailer agent if sendmail is disabledbapt2016-03-241-0/+7
| |
* | MFHgjb2016-03-105-0/+63
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-095-0/+63
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Fix handling of DT_TEXTREL for an object with more than one read-onlykib2016-03-023-19/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | segment. According to gABI spec, presence of the tag indicates that dynamic linker must be prepared to handle relocations against any read-only segment, not only the segment which we, somewhat arbitrary, declared the text. For each read-only segment, add write permission before relocs are processed, and return to the mapping mode requested by the phdr, after relocs are done. Reported, tested, and reviewed by: emaste PR: 207631 Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
OpenPOWER on IntegriCloud