Sebastian Huber
13f1462ff4
bsps/arm: L2C 310 delete invalid link
2014-11-20 10:30:27 +01:00
Sebastian Huber
a9d6c2091b
bsps/arm: L2C 310 simplify and remove white space
2014-11-20 10:30:27 +01:00
Sebastian Huber
957c07575a
bsps/arm: L2C 310 rename BSP_ARM_L2CC_BASE
...
Rename BSP_ARM_L2CC_BASE to BSP_ARM_L2C_310_BASE.
2014-11-20 10:30:26 +01:00
Sebastian Huber
6b4a22e383
shell: Include <rtems/shell.h> early
...
This avoids a conflict with the global variable defines.
2014-11-20 10:30:26 +01:00
Sebastian Huber
8dbc612246
shell: Documentation
2014-11-20 10:30:26 +01:00
Sebastian Huber
3fe5d01bc0
shell: Add CMDLS, CMDCHOWN, CMDCHMOD commands
2014-11-20 10:30:26 +01:00
Sebastian Huber
478455e0ea
shell: Fix help topic header
2014-11-20 10:30:26 +01:00
Sebastian Huber
7eada71e1b
shell: Add mode, UID and GID to shell commands
...
Use this information to determine if a command is visible to the current
user and if the current user is allowed to execute this command.
2014-11-20 10:30:26 +01:00
Sebastian Huber
ffd5285844
shell: Inherit UID and GID if no login check
...
Use the UID and GID of the executing user for the real and effective UID
and GID of the shell task in case no login check is present. This
prevents privilege escalation via shell scripts.
2014-11-20 10:30:25 +01:00
Sebastian Huber
5c141d6a25
shell: Add and use rtems_shell_execute_cmd()
2014-11-20 10:30:25 +01:00
Sebastian Huber
12278585c6
shell: Make rtems_shell_main_joel() static
2014-11-20 10:30:25 +01:00
Sebastian Huber
66da4844f4
shell: Print to stderr in TIME command
2014-11-20 10:30:25 +01:00
Sebastian Huber
7840b66f74
shell: Add initial commands and aliases only once
...
Make tables read-only.
2014-11-20 10:30:25 +01:00
Sebastian Huber
7a2c30faee
shell: Simplify rtems_shell_add_cmd_struct()
2014-11-20 10:30:24 +01:00
Sebastian Huber
bac3d6df35
shell: Rename HALT to SHUTDOWN command
...
Use a normal command for shutdown via exit().
2014-11-20 10:30:24 +01:00
Sebastian Huber
e02d5dd9b3
Ensure security of default user environment
2014-11-20 10:30:24 +01:00
Sebastian Huber
fa028bb2ef
shell: Do chroot() after successful login
2014-11-20 10:30:24 +01:00
Sebastian Huber
373ccbb938
shell: Use exiting once initialization
...
Avoid TOCTOU issues. Avoid pull in of global buffers.
2014-11-20 10:30:24 +01:00
Sebastian Huber
065d72ce7e
shell: Get supplementary group IDs in login check
2014-11-20 10:30:23 +01:00
Sebastian Huber
b8bd90f68f
Add supplementary groups to user environment
2014-11-20 10:30:23 +01:00
Sebastian Huber
0b3fcf5efe
samples/fileio: Use unlimited objects
2014-11-20 10:30:23 +01:00
Sebastian Huber
ab085c92eb
samples/fileio: Fix warning
2014-11-20 10:30:23 +01:00
Sebastian Huber
7bfa0970d4
dosfs: Avoid MIN() re-definition
2014-11-20 10:30:23 +01:00
Sebastian Huber
c3350e7d4a
Filesystem: Typo
2014-11-20 10:30:22 +01:00
Sebastian Huber
ffa71f1cd0
libcsupport: Implement getgroups()
2014-11-20 10:30:22 +01:00
Sebastian Huber
395e5d4d7a
libcsupport: Use POSIX key for getgrent()
2014-11-20 10:30:22 +01:00
Sebastian Huber
acf9a8dd54
shell: Use crypt_r() in rtems_shell_login_check()
...
Use '*" to disable shell login instead of '!' according to the Linux man
page. Use getpwnam_r() instead of getpwnam(). Do not access the user
environment directly. Update the user environment only after a
successful login check.
2014-11-20 10:30:22 +01:00
Sebastian Huber
002f351e15
libcsupport: Minimal /etc/passwd and /etc/group
...
Create a minimal /etc/passwd and /etc/group with user root and group
root only with no passwords.
2014-11-20 10:30:22 +01:00
Sebastian Huber
6935428a29
libcsupport: Avoid TOCTOU and format errors
2014-11-20 10:30:22 +01:00
Sebastian Huber
80055514bb
libcsupport: Use pthread_once()
2014-11-20 10:30:21 +01:00
Sebastian Huber
b471854bc2
libcsupport: Split passwd/group support
2014-11-20 10:30:21 +01:00
Sebastian Huber
d82f9de1c9
libcsupport: Add copyrights according to rev hist
2014-11-20 10:30:21 +01:00
Sebastian Huber
446632197c
Add crypt_r(), etc.
...
Add crypt_add_format(), crypt_r(), crypt_md5_r(), crypt_sha256_r() and
crypt_sha512_r().
2014-11-20 10:30:21 +01:00
Sebastian Huber
1bcd037810
Add SHA256 and SHA512 support
2014-11-20 10:30:21 +01:00
Sebastian Huber
a2b68952b1
Add <sys/endian.h>
2014-11-20 10:30:20 +01:00
Sebastian Huber
45a63ee8d6
bsp/xilinx-zynq: Add Cadence I2C bus driver
2014-11-20 10:30:20 +01:00
Sebastian Huber
bdf8fa76c2
bsp/xilinx-zynq: Add zync_clock_cpu_1x()
2014-11-20 10:30:20 +01:00
Sebastian Huber
234d5c408c
bsp/xilinx-zynq: Rename BSP_ARM_A9MPCORE_UARTCLK
...
Rename BSP_ARM_A9MPCORE_UARTCLK to ZYNQ_CLOCK_UART since this clock has
nothing to do with the Cortex-A9 MPCore.
2014-11-20 10:30:20 +01:00
Sebastian Huber
8100e7117c
bsp/xilinx-zynq: Adjust BSP_ARM_A9MPCORE_PERIPHCLK
2014-11-20 10:30:20 +01:00
Sebastian Huber
0510cfd8ed
Add NXP PCA9548A 8-channel switch I2C driver
2014-11-20 10:30:17 +01:00
Sebastian Huber
67ac69fc3f
Add NXP PCA9535 16-bit GPIO I2C driver
2014-11-20 10:30:12 +01:00
Sebastian Huber
cce4678047
Add generic EEPROM I2C device driver
2014-11-20 10:30:11 +01:00
Sebastian Huber
41c5f1b779
Add I2C driver framework
...
This I2C driver framework has some major differences compared to libi2c.
* It is compatible to the Linux I2C user-space API.
* It uses generic IMFS nodes and thus reduces the levels of indirection.
* The drivers don't have to mess around with minor numbers to get their
state information.
* No arbitrary bus controller model is assumed. The main task of an I2C
bus controller driver is to process I2C messages. How this is done is
private to the driver.
* Scatter/gather operations are supported (I2C_M_NOSTART).
2014-11-20 10:30:06 +01:00
Sebastian Huber
b6f218867b
Add RTEMS port of Linux I2C user-space API
2014-11-20 08:54:11 +01:00
Sebastian Huber
f0c564c5ae
bsps/arm: Adjust stacks for ARMv4
...
Reduce non-IRQ stacks to size zero. All non-IRQ stacks overlap now the
IRQ stack. This is all right since the SVC stack is used only during
startup and here interrupts are disabled. The other exception stacks
lead to a system termination by default, so we can here also use the IRQ
stack since interrupts are disabled on exception entry.
2014-11-20 08:54:10 +01:00
Sebastian Huber
3eade71044
libtests/top: End test after some time if no input
2014-11-20 08:54:10 +01:00
Alan Cudmore
96a9f4cb6d
ARM removed shared/abort from several ARM BSPs
2014-11-20 08:54:10 +01:00
Chris Johns
580466cc9c
libdl: Update comment with details about the error fix.
...
See refs #2192 .
2014-11-20 13:52:12 +11:00
Chris Johns
2ae58c695f
libdl: Update the comments.
...
See refs #2191 .
2014-11-20 10:19:46 +11:00
Chris Johns
fc523ac869
libdl: Fix possible 16-bit overflow (Coverity 1255339) refs #2192 .
...
On a 16-bit target the section value could result in a sign-extension
overflow.
2014-11-20 10:18:16 +11:00