diff --git a/public/te_macros b/public/te_macros index 5da3389e7..0e8dcf43c 100644 --- a/public/te_macros +++ b/public/te_macros @@ -288,15 +288,6 @@ allow $2 vendor_file:file { read open getattr execute map }; # use set_prop(sourcedomain, targetproperty) # define(`unix_socket_connect', ` -ifelse($2, `property', ` - ifelse($3,`init', ` - print(`deprecated: unix_socket_connect($1, $2, $3) Please use set_prop($1, ) instead.') - ') -') -__unix_socket_connect__($1, $2, $3) -') - -define(`__unix_socket_connect__', ` allow $1 $2_socket:sock_file write; allow $1 $3:unix_stream_socket connectto; ') @@ -307,7 +298,7 @@ allow $1 $3:unix_stream_socket connectto; # targetproperty. # define(`set_prop', ` -__unix_socket_connect__($1, property, init) +unix_socket_connect($1, property, init) allow $1 $2:property_service set; get_prop($1, $2) ') @@ -607,9 +598,3 @@ define(`add_hwservice', ` allow $1 hidl_base_hwservice:hwservice_manager add; neverallow { domain -$1 } $2:hwservice_manager add; ') - -########################################## -# print a message with a trailing newline -# print(`args') -define(`print', `errprint(`m4: '__file__: __line__`: $* -')')