mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	pulsecore: Introduce memfd support
Memfd is a simple memory sharing mechanism, added by the systemd/kdbus developers, to share pages between processes in an anonymous, no global registry needed, no mount-point required, relatively secure, manner. This patch introduces the necessary building blocks for using memfd shared memory transfers in PulseAudio. Memfd support shall also help us in laying out the necessary (but not yet sufficient) groundwork for application sandboxing, protecting PA from its clients, and protecting clients data from each other. We plan to exclusively use memfds, instead of POSIX SHM, on the way forward. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
This commit is contained in:
		
							parent
							
								
									1c3a2bcaf1
								
							
						
					
					
						commit
						73e86b1cb1
					
				
					 5 changed files with 231 additions and 66 deletions
				
			
		| 
						 | 
				
			
			@ -729,6 +729,11 @@ libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(LIBJSON_CFLAGS) $(LIBS
 | 
			
		|||
libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS = $(AM_LDFLAGS) $(AM_LIBLDFLAGS) -avoid-version
 | 
			
		||||
libpulsecommon_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBJSON_LIBS)  $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBSNDFILE_LIBS)
 | 
			
		||||
 | 
			
		||||
if HAVE_MEMFD
 | 
			
		||||
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
 | 
			
		||||
		pulsecore/memfd-wrappers.h
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
if HAVE_X11
 | 
			
		||||
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
 | 
			
		||||
		pulse/client-conf-x11.c pulse/client-conf-x11.h \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue